Skip to content

Commit 04ef344

Browse files
committed
[ADD] beverage_distributor: added tour
1 parent 4f3194d commit 04ef344

File tree

4 files changed

+155
-0
lines changed

4 files changed

+155
-0
lines changed

beverage_distributor/__manifest__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
'data/pos_config.xml',
5050
'data/res_config_settings.xml',
5151
'data/knowledge_tour.xml',
52+
'data/deposit_management_tour.xml',
5253
],
5354
'demo': [
5455
'demo/website.xml',
@@ -77,11 +78,13 @@
7778
'assets': {
7879
'web.assets_backend': [
7980
'beverage_distributor/static/src/js/my_tour.js',
81+
'beverage_distributor/static/src/js/tours/deposit_management_tour.js',
8082
]
8183
},
8284
"cloc_exclude": [
8385
"data/knowledge_article.xml",
8486
"static/src/js/my_tour.js",
87+
"static/src/js/tours/deposit_management_tour.js",
8588
],
8689
'license': 'OPL-1',
8790
'author': 'Odoo S.A.',
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<odoo>
3+
<record id="deposit_management_tour" model="web_tour.tour">
4+
<field name="name">deposit_management_tour</field>
5+
<field name="sequence">1000</field>
6+
<field name="rainbow_man_message">Good job! You went through all steps of this tour.</field>
7+
</record>
8+
</odoo>

beverage_distributor/data/knowledge_article.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
</li>
8080
<li>You can also collect deposit directly on your Point of Sale. Select the correct product and encode a negative quantity.</li>
8181
</ul>
82+
<a class="btn btn-primary mb-2" href="/odoo?tour=deposit_management_tour" data-bs-original-title="" title="">Deposit Management Flow Tutorial</a>
8283
<p><br /></p>
8384
<h3>Sales Management 🍾</h3>
8485
<p>Use the Sales app to:</p>
Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
import { registry } from '@web/core/registry';
2+
3+
registry.category("web_tour.tours").add("deposit_management_tour", {
4+
url: "/odoo",
5+
steps: () => [
6+
{
7+
"trigger": ".o_app[data-menu-xmlid='sale\\.sale_menu_root']",
8+
"run": "click"
9+
},
10+
{
11+
"trigger": ".o-dropdown[data-menu-xmlid='sale\\.product_menu_catalog']",
12+
"run": "click"
13+
},
14+
{
15+
"trigger": ".o-dropdown-item[data-menu-xmlid='sale\\.menu_product_template_action']",
16+
"run": "click"
17+
},
18+
{
19+
"trigger": ".o_kanban_record:nth-child(19) > main > span:nth-child(2)",
20+
"run": "click"
21+
},
22+
{
23+
"trigger": ".o_field_widget[name='x_deposit_product_1'] .o-autocomplete--input",
24+
"run": "click"
25+
},
26+
{
27+
"trigger": ".o-autocomplete--dropdown-item:nth-child(4) > a",
28+
"run": "click"
29+
},
30+
{
31+
"trigger": ".o_form_button_save",
32+
"run": "click"
33+
},
34+
{
35+
"trigger": ".o-dropdown[data-menu-xmlid='sale\\.sale_order_menu']",
36+
"run": "click"
37+
},
38+
{
39+
"trigger": ".o-dropdown-item[data-menu-xmlid='sale\\.menu_sale_quotations']",
40+
"run": "click"
41+
},
42+
{
43+
"trigger": ".o_list_button_add",
44+
"run": "click"
45+
},
46+
{
47+
"trigger": ".o_field_widget[name='partner_id'] .o-autocomplete--input",
48+
"run": "edit gourmet"
49+
},
50+
{
51+
"trigger": ".o-autocomplete--dropdown-item:nth-child(1) > a",
52+
"run": "click"
53+
},
54+
{
55+
"trigger": ".o_field_x2many_list_row_add > a:nth-child(1)",
56+
"run": "click"
57+
},
58+
{
59+
"trigger": ".o_field_product_label_section_and_note_cell .o-autocomplete--input",
60+
"run": "edit mobius tri"
61+
},
62+
{
63+
"trigger": ".o-autocomplete--dropdown-item:nth-child(2) > a",
64+
"run": "click"
65+
},
66+
{
67+
"trigger": ".o_statusbar_buttons > button[name='action_confirm']",
68+
"run": "click"
69+
},
70+
{
71+
"trigger": ".oe_stat_button[name='action_view_delivery']",
72+
"run": "click"
73+
},
74+
{
75+
"trigger": ".o_statusbar_buttons > button[name='button_validate']",
76+
"run": "click"
77+
},
78+
{
79+
"trigger": ".o_statusbar_buttons > button[name='\\34 10']",
80+
"run": "click"
81+
},
82+
{
83+
"trigger": ".o_field_x2many_list_row_add > a",
84+
"run": "click"
85+
},
86+
{
87+
"trigger": ".o-autocomplete--input",
88+
"run": "edit deposit"
89+
},
90+
{
91+
"trigger": ".o-autocomplete--dropdown-item:nth-child(4) > a",
92+
"run": "click"
93+
},
94+
{
95+
"trigger": ".o_field_widget[name='quantity'] > .o_input",
96+
"run": "edit 3"
97+
},
98+
{
99+
"trigger": ".o_field_x2many_list_row_add > a",
100+
"run": "click"
101+
},
102+
{
103+
"trigger": ".o-autocomplete--input",
104+
"run": "edit depo"
105+
},
106+
{
107+
"trigger": ".o-autocomplete--dropdown-item:nth-child(3) > a",
108+
"run": "click"
109+
},
110+
{
111+
"trigger": ".o_field_widget[name='quantity'] > .o_input",
112+
"run": "edit 20"
113+
},
114+
{
115+
"trigger": ".o_technical_modal button[name='action_create_returns']",
116+
"run": "click"
117+
},
118+
{
119+
"trigger": ".o_statusbar_buttons > button[name='button_validate']",
120+
"run": "click"
121+
},
122+
{
123+
"trigger": ".o_breadcrumb li:nth-child(2) > a",
124+
"run": "click"
125+
},
126+
{
127+
"trigger": ".o_statusbar_buttons > button[name='\\37 21']",
128+
"run": "click"
129+
},
130+
{
131+
"trigger": ".o_technical_modal button[name='create_invoices']",
132+
"run": "click"
133+
},
134+
{
135+
"trigger": ".o_statusbar_buttons > button[name='action_post']",
136+
"run": "click"
137+
},
138+
{
139+
"trigger": ".o_menu_brand",
140+
"run": "click"
141+
}
142+
]
143+
})

0 commit comments

Comments
 (0)