Skip to content

Commit 2eee51c

Browse files
committed
[ADD] eyewear_shop: added js tour for sale order cash flow and a button in knowledge article
1 parent 665437b commit 2eee51c

File tree

4 files changed

+99
-0
lines changed

4 files changed

+99
-0
lines changed

eyewear_shop/__manifest__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
'data/website_theme_apply.xml',
4646
'data/ir_model_data.xml',
4747
'data/knowledge_tour.xml',
48+
'data/sale_order_to_cash_tour.xml',
4849
],
4950
'demo': [
5051
'demo/res_config_settings.xml',
@@ -80,12 +81,14 @@
8081
'assets': {
8182
'web.assets_backend': [
8283
'eyewear_shop/static/src/js/my_tour.js',
84+
'eyewear_shop/static/src/js/tours/sale_order_to_cash_tour.js',
8385
]
8486
},
8587
'author': 'Odoo S.A.',
8688
"cloc_exclude": [
8789
"data/knowledge_article.xml",
8890
"static/src/js/my_tour.js",
91+
"static/src/js/tours/sale_order_to_cash_tour.js",
8992
],
9093
'images': ['images/main.png'],
9194
}

eyewear_shop/data/knowledge_article.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
<li>From the Sales order, create an Invoice</li>
5151
<li>After confirming the Invoice, click on "Register Payment"<br /></li>
5252
</ul>
53+
<a class="btn btn-primary mb-2" href="/odoo?tour=sale_order_to_cash_tour" data-bs-original-title="" title="">Sale Flow Tutorial</a>
5354
<br />
5455
<h2>Flow 2: Replenishment</h2>
5556
<br />
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="sale_order_to_cash_tour" model="web_tour.tour">
4+
<field name="name">sale_order_to_cash_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>
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
import { registry } from '@web/core/registry';
2+
3+
registry.category("web_tour.tours").add("sale_order_to_cash_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_list_button_add",
12+
"run": "click"
13+
},
14+
{
15+
"trigger": ".o_field_widget[name='partner_id'] .o-autocomplete--input",
16+
"run": "edit alyssia santon"
17+
},
18+
{
19+
"trigger": ".o-autocomplete--dropdown-item > a:contains('Alyssia Santon'), .fa-circle-o-notch",
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 ray-ban rb07"
29+
},
30+
{
31+
"trigger": ".o-autocomplete--dropdown-item:nth-child(1) > a",
32+
"run": "click"
33+
},
34+
{
35+
"trigger": "li:nth-child(2) > .o_sale_product_configurator_ptav_color",
36+
"run": "click"
37+
},
38+
{
39+
"trigger": ".o_sale_product_configurator_price[name='price'] > button[name='sale_product_configurator_add_button']",
40+
"run": "click"
41+
},
42+
{
43+
"trigger": ".o_sale_product_configurator_dialog button[name='sale_product_configurator_confirm_button']",
44+
"run": "click"
45+
},
46+
{
47+
"trigger": ".o_statusbar_buttons > button[name='action_confirm']",
48+
"run": "click"
49+
},
50+
{
51+
"trigger": ".o_stat_info",
52+
"run": "click"
53+
},
54+
{
55+
"trigger": ".o_statusbar_buttons > button[name='button_validate']",
56+
"run": "click"
57+
},
58+
{
59+
"trigger": ".o_back_button > a",
60+
"run": "click"
61+
},
62+
{
63+
"trigger": ".o_statusbar_buttons > button[name='\\36 32']",
64+
"run": "click"
65+
},
66+
{
67+
"trigger": ".o_technical_modal button[name='create_invoices']",
68+
"run": "click"
69+
},
70+
{
71+
"trigger": ".o_statusbar_buttons > button[name='action_post']",
72+
"run": "click"
73+
},
74+
{
75+
"trigger": ".o_statusbar_buttons > button[name='action_register_payment']",
76+
"run": "click"
77+
},
78+
{
79+
"trigger": ".o_technical_modal button[name='action_create_payments']",
80+
"run": "click"
81+
},
82+
{
83+
"trigger": ".o_menu_toggle",
84+
"run": "click"
85+
}
86+
]
87+
})

0 commit comments

Comments
 (0)