Skip to content

Commit a944d32

Browse files
committed
Cleanup commit -4
- add a table and floors. - add a beer and tips cate in pos.
1 parent 969357e commit a944d32

19 files changed

+331
-38
lines changed

bar_industry/__manifest__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,22 @@
2323
'data/hr_employee.xml',
2424
'data/product_category.xml',
2525
'data/product_pricelist.xml',
26-
# 'data/restaurant_floor.xml',
27-
# 'data/restaurant_table.xml',
28-
'data/pos_config.xml',
29-
'data/res_config_settings.xml',
26+
'data/restaurant_floor.xml',
27+
'data/restaurant_table.xml',
3028
'data/ir_attachment_pre.xml',
3129
'data/project_task_type.xml',
3230
'data/project_project.xml',
3331
'data/planning_role.xml',
3432
'data/pos_category.xml',
33+
'data/pos_config.xml',
3534
'data/uom_uom.xml',
3635
'data/product_product.xml',
3736
'data/knowledge_cover.xml',
3837
'data/knowledge_article.xml',
3938
'data/knowledge_article_favorite.xml',
4039
'data/mail_message.xml',
4140
'data/knowledge_tour.xml',
41+
'data/res_config_settings.xml',
4242
],
4343
'demo': [
4444
'demo/pos_preparation_display_display.xml',

bar_industry/data/ir_attachment_pre.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@
33
<record id="ir_attachment_584" model="ir.attachment">
44
<field name="name">unsplash_VZY6o3Q0EEI_.jpg</field>
55
<field name="datas" type="base64" file="bar_industry/static/src/binary/ir_attachment/584-unsplash_VZY6o3Q0EEI_.jpg"/>
6-
<field name="url">/unsplash/VZY6o3Q0EEI/.jpg</field>
76
</record>
87
</odoo>

bar_industry/data/knowledge_article.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,13 @@
7373
<h3>1. Point of sale</h3>
7474
<hr />
7575
<p>From the Point of Sale, open your register on the main dashboard.</p>
76+
<div class="o_editor_banner o_not_editable lh-1 d-flex align-items-center alert alert-info pb-0 pt-3" data-oe-protected="true">
7677
<i class="o_editor_banner_icon mb-3 fst-normal">🔑</i>
7778
<div class="w-100 px-3" data-oe-protected="false">
7879
<p>The current setup requires your employees to pin to log in the POS register. This helps you manage rights and accesses.</p>
7980
<p>As an administrator your pin is 3333. You can edit the pin of your employees in the Employee App, in the Settings tab.</p>
8081
</div>
82+
</div>
8183
<p>1. You are ready to welcome your first customers. To do so, select a table on the floor map and select the products they asked for from the list.</p>
8284
<div class="o_editor_banner o_not_editable lh-1 d-flex align-items-center alert alert-info pb-0 pt-3" data-oe-protected="true">
8385
<i class="o_editor_banner_icon mb-3 fst-normal">💡</i>
@@ -165,10 +167,12 @@
165167
<p>4. You can still reassign any shift to adapt the planning.</p>
166168
<p>5. Once you are happy with it, send it to your co-workers by smashing the publish button.</p>
167169
<p><br/></p>
170+
<!-- <div class="o_editor_banner o_not_editable lh-1 d-flex align-items-center alert alert-info pb-0 pt-3" data-oe-protected="true">
168171
<i class="o_editor_banner_icon mb-3 fst-normal">🚀</i>
169172
<div class="w-100 px-3" data-oe-protected="false">
170173
<p>It is as well possible to leverage the Kiosk from the Attendance App for your employees to self check in and out when starting and ending their shifts. This way a summary of their worked shifts is available via the Reporting menu.</p>
171174
</div>
175+
</div> -->
172176
<div data-oe-protected="true" class="o_editor_banner o_not_editable lh-1 d-flex align-items-center alert alert-success pb-0 pt-3">
173177
<i class="o_editor_banner_icon mb-3 fst-normal">🎉</i>
174178
<div data-oe-protected="false" class="w-100 ms-3">

bar_industry/data/pos_category.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
<?xml version='1.0' encoding='UTF-8'?>
22
<odoo noupdate="1">
3+
<record id="pos_restaurant.pos_category_cocktails" model="pos.category" forcecreate="1">
4+
<field name="name">Cocktails</field>
5+
<field name="image_128" type="base64" file="bar_industry/static/src/binary/pos_category/1-image_128"/>
6+
</record>
7+
<record id="pos_restaurant.pos_category_soft_drinks" model="pos.category" forcecreate="1">
8+
<field name="name">Soft drinks</field>
9+
<field name="image_128" type="base64" file="bar_industry/static/src/binary/pos_category/2-image_128"/>
10+
</record>
311
<record id="pos_category_3" model="pos.category">
412
<field name="name">Beers</field>
13+
<field name="image_128" type="base64" file="bar_industry/static/src/binary/pos_category/3-image_128"/>
14+
</record>
15+
<record id="pos_category_4" model="pos.category">
16+
<field name="name">Tips</field>
517
</record>
618
</odoo>

bar_industry/data/pos_config.xml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,21 @@
33
<function model="pos.config" name="load_onboarding_bar_scenario" />
44

55
<record id="pos_restaurant.pos_config_main_bar" model="pos.config">
6-
<field name="module_pos_hr" eval="True"/>
6+
<field name="name">Bar</field>
7+
<field name="iface_tax_included">subtotal</field>
8+
<field name="iface_available_categ_ids" eval="[(6, 0, [ref('pos_restaurant.pos_category_cocktails'), ref('pos_restaurant.pos_category_soft_drinks'), ref('pos_category_3'), ref('pos_category_4')])]"/>
79
<field name="tip_product_id" eval="False"/>
8-
<!-- <field name="floor_ids" eval="[(6, 0, [ref('restaurant_floor_1')])]"/> -->
10+
<field name="limit_categories" eval="True"/>
11+
<field name="iface_splitbill" eval="True"/>
12+
<field name="iface_printbill" eval="True"/>
13+
<field name="module_pos_restaurant" eval="True"/>
14+
<field name="module_pos_hr" eval="True"/>
15+
<field name="floor_ids" eval="[(6, 0, [ref('pos_restaurant.floor_main'), ref('pos_restaurant.floor_patio')])]"/>
916
<field name="minimal_employee_ids" eval="[(6, 0, [ref('hr_employee_2')])]" />
1017
<field name="basic_employee_ids" eval="[(6, 0, [ref('hr_employee_5'), ref('hr_employee_6')])]"/>
1118
<field name="advanced_employee_ids" eval="[(6, 0, [ref('hr.employee_admin'), ref('hr_employee_4')])]"/>
1219
<field name="show_product_images" eval="True"/>
13-
<field name="available_pricelist_ids" eval="[(6, 0, [ref('product_pricelist_2')])]"/>
20+
<field name="available_pricelist_ids" eval="[(6, 0, [ref('product_pricelist_1'), ref('product_pricelist_2')])]"/>
21+
<field name="pricelist_id" ref="product_pricelist_1"/>
1422
</record>
1523
</odoo>

bar_industry/data/product_category.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
<odoo noupdate="1">
33
<record id="product_category_1" model="product.category">
44
<field name="name">Beer</field>
5-
<field name="pos_config_ids" eval="[(6, 0, [ref('pos_restaurant.pos_config_main_bar')])]"/>
65
</record>
76
<record id="product_category_7" model="product.category">
87
<field name="name">Soft drinks</field>
9-
</record>
8+
</record>
9+
<record id="product_category_8" model="product.category">
10+
<field name="name">Tips</field>
11+
</record>
1012
</odoo>

bar_industry/data/product_pricelist.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<?xml version='1.0' encoding='UTF-8'?>
22
<odoo noupdate="1">
3+
<record id="product_pricelist_1" model="product.pricelist">
4+
<field name="name">Default</field>
5+
</record>
36
<record id="product_pricelist_2" model="product.pricelist">
47
<field name="name">Happy Hour</field>
58
<field name="item_ids" eval="[(0, 0, {

bar_industry/data/product_product.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
<field name="list_price">4.5</field>
77
<field name="route_ids" eval="[(6, 0, [ref('purchase_stock.route_warehouse0_buy')])]"/>
88
<field name="image_1920" type="base64" file="bar_industry/static/src/binary/product_template/26-image_1920"/>
9+
<field name="pos_categ_ids" eval="[(6, 0, [ref('pos_category_3')])]"/>
910
<field name="categ_id" ref="product_category_1"/>
1011
<field name="purchase_method">receive</field>
1112
<field name="available_in_pos" eval="True"/>
12-
<field name="standard_price">2.5</field>
13+
<field name="standard_price">0.8</field>
1314
<field name="uom_ids" eval="[Command.link(ref('uom_uom_1'))]"/>
14-
<field name="pos_categ_ids" eval="[(6, 0, [ref('pos_category_3')])]"/>
1515
</record>
1616
<record id="product_product_3" model="product.product">
1717
<field name="name">Gift Card</field>
@@ -20,7 +20,6 @@
2020
<field name="sale_ok" eval="False"/>
2121
<field name="purchase_ok" eval="False"/>
2222
<field name="responsible_id" ref="base.user_root"/>
23-
<field name="route_ids" eval="[(6, 0, [])]"/>
2423
<field name="purchase_method">purchase</field>
2524
</record>
2625
<record id="product_product_29" model="product.product">
@@ -71,5 +70,6 @@
7170
</record>
7271
<record id="point_of_sale.product_product_tip" model="product.product" forcecreate="1">
7372
<field name="available_in_pos">True</field>
73+
<field name="pos_categ_ids" eval="[(6, 0, [ref('pos_category_4')])]"/>
7474
</record>
7575
</odoo>

bar_industry/data/res_partner.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@
8787
<field name="email">[email protected]</field>
8888
<field name="phone">+1 650-691-3277</field>
8989
<field name="is_company" eval="True"/>
90-
<field name="partner_gid">3</field>
9190
</record>
9291
<record id="res_partner_30" model="res.partner">
9392
<field name="name">David Miller</field>

bar_industry/data/restaurant_floor.xml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@
22
<odoo noupdate="1">
33
<record id="restaurant_floor_1" model="restaurant.floor">
44
<field name="name">My Company</field>
5-
<field name="pos_config_ids" eval="[(6, 0, [ref('pos_restaurant.pos_config_main_bar')])]"/>
5+
</record>
6+
<record id="restaurant_floor_4" model="restaurant.floor">
7+
<field name="name">My Company (San Francisco)</field>
8+
</record>
9+
<record id="restaurant_floor_5" model="restaurant.floor">
10+
<field name="name">My Company (San Francisco)</field>
11+
</record>
12+
<record id="pos_restaurant.floor_main" model="restaurant.floor" forcecreate="1">
13+
<field name="name">Main Floor</field>
14+
<field name="background_color">white</field>
15+
<field name="floor_background_image" type="base64" file="bar_industry/static/src/binary/pos_restaurant/floor_main.jpeg" />
16+
</record>
17+
<record id="pos_restaurant.floor_patio" model="restaurant.floor" forcecreate="1">
18+
<field name="name">Patio</field>
19+
<field name="background_color">rgb(130, 233, 171)</field>
620
</record>
721
</odoo>

0 commit comments

Comments
 (0)