Skip to content

Commit 8d6de47

Browse files
dhrs-odoojaeschwa
authored andcommitted
[ADD] *: Onboarding tours
In the objective of making the onboarding as easy and smooth as possible, the onboarding tours presented will allow the customer to click on a button and be redirected to the business flow tour of each industry.
1 parent 6e16401 commit 8d6de47

File tree

57 files changed

+1630
-15
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+1630
-15
lines changed

agriculture_shop/__manifest__.py

+3
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
'data/website_view.xml',
3838
'data/website_theme_apply.xml',
3939
'data/knowledge_tour.xml',
40+
'data/purchase_tour.xml',
4041
],
4142
'demo': [
4243
'demo/res_partner.xml',
@@ -69,12 +70,14 @@
6970
'assets': {
7071
'web.assets_backend': [
7172
'agriculture_shop/static/src/js/my_tour.js',
73+
'agriculture_shop/static/src/js/tours/purchase_flow.js',
7274
]
7375
},
7476
'author': 'Odoo S.A.',
7577
"cloc_exclude": [
7678
"data/knowledge_article.xml",
7779
"static/src/js/my_tour.js",
80+
"static/src/js/tours/purchase_flow.js",
7881
"data/website_view.xml",
7982
"demo/website_view.xml",
8083
],

agriculture_shop/data/knowledge_article.xml

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
<li>Confirm RFQ based on best price</li>
4242
<li><font style="color: var(--color) !important;">Validate the reception for all quantities at once. </font></li>
4343
</ul>
44+
<a class="btn btn-primary mb-2" href="/odoo?tour=purchase_custom_tour" data-bs-original-title="" title="">Purchase Flow Tutorial</a>
4445
<h2 style="margin-bottom: 0px;">
4546
<font class="text-black"><strong>Flow 2: Sales from Website (B2B / B2C) </strong></font>
4647
</h2>
+8
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="purchase_tour" model="web_tour.tour">
4+
<field name="name">purchase_custom_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>

agriculture_shop/data/res_config_settings.xml

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
<record id="res_config_account_setting_agriculture" model="res.config.settings">
44
<field name="group_analytic_accounting" eval="1"/>
55
<field name="group_product_pricelist" eval="True"/>
6+
<field name="module_purchase_requisition" eval="1"/>
7+
<field name="group_purchase_alternatives" eval="1"/>
68
</record>
7-
<function name="execute" model="res.config.settings">
9+
<function model="res.config.settings" name="execute">
810
<value eval="[ref('res_config_account_setting_agriculture')]"/>
911
</function>
1012
</odoo>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
import { registry } from '@web/core/registry';
2+
3+
registry.category("web_tour.tours").add("purchase_custom_tour", {
4+
url: "/odoo",
5+
steps: () => [
6+
{
7+
"trigger": ".o_app[data-menu-xmlid='purchase\\.menu_purchase_root']",
8+
"run": "click"
9+
},
10+
{
11+
"trigger": ".o_list_button_add",
12+
"run": "click"
13+
},
14+
{
15+
"trigger": ".o_field_widget[name='partner_id'] .o-autocomplete--input",
16+
"run": "edit gloster"
17+
},
18+
{
19+
"trigger": ".o-autocomplete--dropdown-item:nth-child(1) > a",
20+
"run": "click"
21+
},
22+
{
23+
"trigger": ".o_field_x2many_list_row_add > a:nth-child(1)",
24+
"run": "click"
25+
},
26+
{
27+
"trigger": ".o_field_product_label_section_and_note_cell .o-autocomplete--input",
28+
"run": "edit on"
29+
},
30+
{
31+
"trigger": ".o-autocomplete--dropdown-item:nth-child(1) > a",
32+
"run": "click"
33+
},
34+
{
35+
"trigger": ".o_form_button_save",
36+
"run": "click"
37+
},
38+
{
39+
"trigger": ".o_notebook_headers a[name='alternative_pos']",
40+
"run": "click"
41+
},
42+
{
43+
"trigger": ".o_field_x2many_list_row_add > a",
44+
"run": "click"
45+
},
46+
{
47+
"trigger": ".o_create_button",
48+
"run": "click"
49+
},
50+
{
51+
"trigger": "main .o_field_widget[name='partner_id'] .o-autocomplete--input",
52+
"run": "edit ast"
53+
},
54+
{
55+
"trigger": ".o-autocomplete--dropdown-item:nth-child(1) > a",
56+
"run": "click"
57+
},
58+
{
59+
"trigger": ".o_section_and_note_list_view a:nth-child(1)",
60+
"run": "click"
61+
},
62+
{
63+
"trigger": ".o_field_product_label_section_and_note_cell .o-autocomplete--input",
64+
"run": "edit on"
65+
},
66+
{
67+
"trigger": ".o-autocomplete--dropdown-item:nth-child(1) > a",
68+
"run": "click"
69+
},
70+
{
71+
"trigger": ".o_field_widget[name='product_qty'] > .o_input",
72+
"run": "edit 100"
73+
},
74+
{
75+
"trigger": ".o-wysiwyg div[contenteditable='true']",
76+
"run": "click"
77+
},
78+
{
79+
"trigger": ".o_data_cell[name='price_unit']",
80+
"run": "click"
81+
},
82+
{
83+
"trigger": ".o_field_widget[name='price_unit'] > .o_input",
84+
"run": "edit 110"
85+
},
86+
{
87+
"trigger": ".o-wysiwyg div[contenteditable='true']",
88+
"run": "click"
89+
},
90+
{
91+
"trigger": "footer > .o_form_button_save",
92+
"run": "click"
93+
},
94+
{
95+
"trigger": ".o_cell button[name='action_compare_alternative_lines']",
96+
"run": "click"
97+
},
98+
{
99+
"trigger": ".o_data_row:nth-child(3) .o_clear_qty_buttons[name='action_choose']",
100+
"run": "click"
101+
},
102+
{
103+
"trigger": ".o_back_button > a",
104+
"run": "click"
105+
},
106+
{
107+
"trigger": ".o_statusbar_buttons > button[name='button_confirm']",
108+
"run": "click"
109+
},
110+
{
111+
"trigger": ".o_technical_modal button[name='action_cancel_alternatives']",
112+
"run": "click"
113+
},
114+
{
115+
"trigger": ".o_statusbar_buttons > button[name='action_view_picking']",
116+
"run": "click"
117+
},
118+
{
119+
"trigger": ".o_data_cell:nth-child(5) > button[name='Open\\ Move']",
120+
"run": "click"
121+
},
122+
{
123+
"trigger": ".o_data_cell[name='lot_name']",
124+
"run": "click"
125+
},
126+
{
127+
"trigger": ".o_field_widget[name='lot_name'] > .o_input",
128+
"run": "edit lot001"
129+
},
130+
{
131+
"trigger": "footer > .o_form_button_save",
132+
"run": "click"
133+
},
134+
{
135+
"trigger": ".o_statusbar_buttons > button[name='button_validate']",
136+
"run": "click"
137+
},
138+
{
139+
"trigger": ".o_breadcrumb li:nth-child(1) > a",
140+
"run": "click"
141+
},
142+
{
143+
"trigger": ".o_menu_brand",
144+
"run": "click"
145+
}
146+
]
147+
})

art_craft/__manifest__.py

+3
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
'data/mail_message.xml',
5353
'data/website_view.xml',
5454
'data/knowledge_tour.xml',
55+
'data/consignment_purchase_tour.xml',
5556
],
5657
'demo': [
5758
'demo/res_partner.xml',
@@ -79,13 +80,15 @@
7980
'assets': {
8081
'web.assets_backend': [
8182
'art_craft/static/src/js/my_tour.js',
83+
'art_craft/static/src/js/tours/consignment_purchase_tour.js',
8284
]
8385
},
8486
'author': 'Odoo S.A.',
8587
"cloc_exclude": [
8688
"data/knowledge_article.xml",
8789
"data/qweb_view.xml",
8890
"static/src/js/my_tour.js",
91+
"static/src/js/tours/consignment_purchase_tour.js",
8992
"data/website_view.xml",
9093
"demo/website_view.xml",
9194
],
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="consignment_purchase_tour" model="web_tour.tour">
4+
<field name="name">consignment_purchase</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>

art_craft/data/knowledge_article.xml

+4
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@
5454
<li>Validate the reception for all quantities at once.</li>
5555
</ul>
5656
<p><br /></p>
57+
<a class="btn btn-primary mb-2" href="/odoo?tour=purchase_tour" data-bs-original-title="" title="">Purchase Flow Tutorial</a>
58+
<p><br /></p>
5759
<h1 style="margin-bottom: 0px;">Flow 2: Consignment Purchase</h1>
5860
<p style="margin-bottom: 0px;"><br /></p>
5961
<p style="margin-bottom: 0px;">
@@ -70,6 +72,8 @@
7072
<li>Validate the reception for all quantities at once.</li>
7173
</ul>
7274
<p><br /></p>
75+
<a class="btn btn-primary mb-2" href="/odoo?tour=consignment_purchase" data-bs-original-title="" title="">Consignment Purchase Flow Tutorial</a>
76+
<p><br /></p>
7377
<h1 style="margin-bottom: 0px;">Flow 3: Point of sales - Regular</h1>
7478
<p style="margin-bottom: 0px;"><br /></p>
7579
<p style="margin-bottom: 0px;">For the Small Products, orders &amp; payments are done at the shop itself, and the customer pickups the products directly.</p>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
import { registry } from '@web/core/registry';
2+
3+
registry.category("web_tour.tours").add("consignment_purchase", {
4+
url: "/odoo",
5+
steps: () => [
6+
{
7+
"trigger": ".o_app[data-menu-xmlid='purchase\\.menu_purchase_root']",
8+
"run": "click"
9+
},
10+
{
11+
"trigger": ".o_list_button_add",
12+
"run": "click"
13+
},
14+
{
15+
"trigger": ".o_field_widget[name='partner_id'] .o-autocomplete--input",
16+
"run": "edit demo"
17+
},
18+
{
19+
"trigger": ".o-autocomplete--dropdown-item:nth-child(1) > a",
20+
"run": "click"
21+
},
22+
{
23+
"trigger": ".o_field_widget[name='x_is_consignee'] input",
24+
"run": "click"
25+
},
26+
{
27+
"trigger": ".o_field_x2many_list_row_add > a:nth-child(1)",
28+
"run": "click"
29+
},
30+
{
31+
"trigger": ".o_field_product_label_section_and_note_cell .o-autocomplete--input",
32+
"run": "click"
33+
},
34+
{
35+
"trigger": ".o-autocomplete--dropdown-item:nth-child(1) > a",
36+
"run": "click"
37+
},
38+
{
39+
"trigger": ".o_section_and_note_list_view tr:nth-child(3) > td",
40+
"run": "click"
41+
},
42+
{
43+
"trigger": ".o_field_x2many_list_row_add > a:nth-child(1)",
44+
"run": "click"
45+
},
46+
{
47+
"trigger": ".o_field_product_label_section_and_note_cell .o-autocomplete--input",
48+
"run": "click"
49+
},
50+
{
51+
"trigger": ".o-autocomplete--dropdown-item:nth-child(5) > a",
52+
"run": "click"
53+
},
54+
{
55+
"trigger": ".o_section_and_note_list_view tr:nth-child(4) > td",
56+
"run": "click"
57+
},
58+
{
59+
"trigger": ".o_form_button_save",
60+
"run": "click"
61+
},
62+
{
63+
"trigger": ".o_statusbar_buttons > button[name='button_confirm']",
64+
"run": "click"
65+
},
66+
{
67+
"trigger": ".o_stat_text",
68+
"run": "click"
69+
},
70+
{
71+
"trigger": ".o_statusbar_buttons > button[name='button_validate']",
72+
"run": "click"
73+
},
74+
{
75+
"trigger": ".o_menu_brand",
76+
"run": "click"
77+
}
78+
]
79+
})

automobile/data/knowledge_article.xml

+6
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535
3. After confirming the PO Receipt will be generated based on the received quantity you have add that quantities in to the Done quantities and if some products have Lot &amp; Serial no. than at the time of validating receipt you have to
3636
provide the lot &amp; Serial No.
3737
</p>
38+
<p><br /></p>
39+
<a class="btn btn-primary mb-2" href="/odoo?tour=purchase_tour" data-bs-original-title="" title="">Purchase Flow Tutorial</a>
40+
<p><br /></p>
3841
<h2>Flow 2: B2B Customer<br /></h2>
3942
<p>
4043
1.For the B2B Sales we will use the normal process of the sales create the quotation than select the products and sent an quotation and after the negotiation via e-mail after the negotiation you can confirmed the quotation than your
@@ -49,6 +52,9 @@
4952
</span>
5053
<br />
5154
</p>
55+
<p><br /></p>
56+
<a class="btn btn-primary mb-2" href="/odoo?tour=sale_tour" data-bs-original-title="" title="">Sales Flow Tutorial</a>
57+
<p><br /></p>
5258
<p data-o-mail-quote-node="1" data-o-mail-quote="1"><br /></p>
5359
<h2>Flow 3: B2C Customer : Point of Sale<br /></h2>
5460
<p>1.For the B2C sales we will use the POS module customer come to the shop the user will add the products which products want to buy customer and take payment of that product.<br /></p>

beverage_distributor/__manifest__.py

+3
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
"demo/website_view.xml",
8689
],
8790
'license': 'OPL-1',
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>

0 commit comments

Comments
 (0)