Skip to content

Commit 4f3194d

Browse files
committed
[ADD] art_craft: consignment purchase flow tour
1 parent f558213 commit 4f3194d

File tree

5 files changed

+92
-1
lines changed

5 files changed

+92
-1
lines changed

agriculture_shop/data/knowledge_article.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +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=custom_tour_purchase" data-bs-original-title="" title="">Purchase Flow Tutorial</a>
44+
<a class="btn btn-primary mb-2" href="/odoo?tour=purchase_custom_tour" data-bs-original-title="" title="">Purchase Flow Tutorial</a>
4545
<h2 style="margin-bottom: 0px;">
4646
<font class="text-black"><strong>Flow 2: Sales from Website (B2B / B2C) </strong></font>
4747
</h2>

art_craft/__manifest__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
'data/website_view.xml',
5353
'data/ir_model_data.xml',
5454
'data/knowledge_tour.xml',
55+
'data/consignment_purchase_tour.xml',
5556
],
5657
'demo': [
5758
'demo/res_partner.xml',
@@ -79,12 +80,14 @@
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
"static/src/js/my_tour.js",
90+
"static/src/js/tours/consignment_purchase_tour.js",
8891
],
8992
'images': ['images/main.png'],
9093
}
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="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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
<li>Reception time system auto took (Customization: Automated action)the consignee name in the standard field of the consignee owner or also took the third party name manually.</li>
7070
<li>Validate the reception for all quantities at once.</li>
7171
</ul>
72+
<a class="btn btn-primary mb-2" href="/odoo?tour=consignment_purchase" data-bs-original-title="" title="">Consignment Purchase Flow Tutorial</a>
7273
<p><br /></p>
7374
<h1 style="margin-bottom: 0px;">Flow 3: Point of sales - Regular</h1>
7475
<p style="margin-bottom: 0px;"><br /></p>
Lines changed: 79 additions & 0 deletions
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+
})

0 commit comments

Comments
 (0)