Skip to content

Commit fbcce52

Browse files
committed
[ADD] furniture_store: added tour for selling product in kit
1 parent 8c16a66 commit fbcce52

File tree

4 files changed

+135
-0
lines changed

4 files changed

+135
-0
lines changed

furniture_store/__manifest__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
'data/mail_message.xml',
4141
'data/knowledge_tour.xml',
4242
'data/order_custom_product_tour.xml',
43+
'data/bom_tour.xml',
4344
],
4445
'demo': [
4546
'demo/res_partner.xml',
@@ -67,13 +68,15 @@
6768
'web.assets_backend': [
6869
'furniture_store/static/src/js/my_tour.js',
6970
'furniture_store/static/src/js/tours/order_custom_product_tour.js',
71+
'furniture_store/static/src/js/tours/bom_tour.js',
7072
]
7173
},
7274
'author': 'Odoo S.A.',
7375
"cloc_exclude": [
7476
"data/knowledge_article.xml",
7577
"static/src/js/my_tour.js",
7678
"static/src/js/tours/order_custom_product_tour.js",
79+
"static/src/js/tours/bom_tour.js",
7780
],
7881
'images': ['images/main.png'],
7982
}

furniture_store/data/bom_tour.xml

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="bom_tour" model="web_tour.tour">
4+
<field name="name">bom_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>

furniture_store/data/knowledge_article.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@
183183
</font>
184184
</li>
185185
</ul>
186+
<a class="btn btn-primary mb-2" href="/odoo?tour=bom_tour" data-bs-original-title="" title="">Product in KIT Tutorial</a>
186187
<br />
187188
<p>
188189
<br />
Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
import { registry } from '@web/core/registry';
2+
3+
registry.category("web_tour.tours").add("bom_tour", {
4+
url: "/odoo",
5+
steps: () => [
6+
{
7+
"trigger": ".o_app[data-menu-xmlid='mrp\\.menu_mrp_root']",
8+
"run": "click"
9+
},
10+
{
11+
"trigger": ".o-dropdown[data-menu-xmlid='mrp\\.menu_mrp_bom']",
12+
"run": "click"
13+
},
14+
{
15+
"trigger": ".o-dropdown-item[data-menu-xmlid='mrp\\.menu_mrp_bom_form_action']",
16+
"run": "click"
17+
},
18+
{
19+
"trigger": ".o_list_button_add",
20+
"run": "click"
21+
},
22+
{
23+
"trigger": ".o_field_widget[name='product_tmpl_id'] .o-autocomplete--input",
24+
"run": "edit sofa set (3+1"
25+
},
26+
{
27+
"trigger": ".o-autocomplete--dropdown-item:nth-child(1) > a",
28+
"run": "click"
29+
},
30+
{
31+
"trigger": ".o_field_x2many_list_row_add > a",
32+
"run": "click"
33+
},
34+
{
35+
"trigger": ".o_data_cell[name='product_id'] .o-autocomplete--input",
36+
"run": "edit sofa (triple "
37+
},
38+
{
39+
"trigger": ".o-autocomplete--dropdown-item:nth-child(1) > a",
40+
"run": "click"
41+
},
42+
{
43+
"trigger": ".o_field_x2many_list_row_add > a",
44+
"run": "click"
45+
},
46+
{
47+
"trigger": ".o_data_cell[name='product_id'] .o-autocomplete--input",
48+
"run": "edit sofa (sing"
49+
},
50+
{
51+
"trigger": ".o-autocomplete--dropdown-item:nth-child(1) > a",
52+
"run": "click"
53+
},
54+
{
55+
"trigger": ".o_data_cell[name='product_qty'] .o_input",
56+
"run": "edit 2"
57+
},
58+
{
59+
"trigger": ".o-mail-Thread > div",
60+
"run": "click"
61+
},
62+
{
63+
"trigger": ".o_form_button_save",
64+
"run": "click"
65+
},
66+
{
67+
"trigger": ".o_menu_brand",
68+
"run": "click"
69+
},
70+
{
71+
"trigger": ".o_app[data-menu-xmlid='sale\\.sale_menu_root']",
72+
"run": "click"
73+
},
74+
{
75+
"trigger": ".o_list_button_add",
76+
"run": "click"
77+
},
78+
{
79+
"trigger": ".o_field_widget[name='partner_id'] .o-autocomplete--input",
80+
"run": "edit excellent furnit"
81+
},
82+
{
83+
"trigger": ".o-autocomplete--dropdown-item:nth-child(1) > a",
84+
"run": "click"
85+
},
86+
{
87+
"trigger": ".o_field_x2many_list_row_add > a:nth-child(1)",
88+
"run": "click"
89+
},
90+
{
91+
"trigger": ".o_field_product_label_section_and_note_cell .o-autocomplete--input",
92+
"run": "edit sofa set (3"
93+
},
94+
{
95+
"trigger": ".o-autocomplete--dropdown-item:nth-child(1) > a",
96+
"run": "click"
97+
},
98+
{
99+
"trigger": ".o_statusbar_buttons > button[name='action_confirm']",
100+
"run": "click"
101+
},
102+
{
103+
"trigger": ".o_button_icon",
104+
"run": "click"
105+
},
106+
{
107+
"trigger": ".o_statusbar_buttons > button[name='button_validate']",
108+
"run": "click"
109+
},
110+
{
111+
"trigger": ".o_technical_modal button[name='send_sms']",
112+
"run": "click"
113+
},
114+
{
115+
"trigger": ".o_back_button > a",
116+
"run": "click"
117+
},
118+
{
119+
"trigger": ".o_menu_brand",
120+
"run": "click"
121+
}
122+
]
123+
})

0 commit comments

Comments
 (0)