Skip to content

Commit 665437b

Browse files
committed
[ADD] electronic_store: added the purchase with lot no
1 parent b8d4b72 commit 665437b

File tree

5 files changed

+109
-0
lines changed

5 files changed

+109
-0
lines changed

electronic_store/__manifest__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
'data/mail_message.xml',
5454
'data/ir_model_data.xml',
5555
'data/knowledge_tour.xml',
56+
'data/purchase_lot_tour.xml',
5657
],
5758
'demo': [
5859
'demo/res_partner.xml',
@@ -89,12 +90,14 @@
8990
'assets': {
9091
'web.assets_backend': [
9192
'electronic_store/static/src/js/my_tour.js',
93+
'electronic_store/static/src/js/tours/purchase_lot_tour.js',
9294
]
9395
},
9496
'author': 'Odoo S.A.',
9597
"cloc_exclude": [
9698
"data/knowledge_article.xml",
9799
"static/src/js/my_tour.js",
100+
"static/src/js/tours/purchase_lot_tour.js",
98101
],
99102
'images': ['images/main.png'],
100103
}

electronic_store/data/knowledge_article.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
</ul>
4949
</li>
5050
</ul>
51+
<a class="btn btn-primary mb-2" href="/odoo?tour=purchase_lot_tour" data-bs-original-title="" title="">Purchase Flow Tutorial</a>
52+
<p><br /></p>
5153
<h2>
5254
<strong>Flow 2. Sale with serial number</strong>
5355
</h2>
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="purchase_lot_tour" model="web_tour.tour">
4+
<field name="name">purchase_lot_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>

electronic_store/data/res_config_settings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?xml version='1.0' encoding='UTF-8'?>
22
<odoo noupdate="1">
33
<record id="res_config_settings_enable_electronic_store" model="res.config.settings">
4+
<field name="group_stock_production_lot" eval="1"/>
45
<field name="group_stock_lot_print_gs1" eval="1"/>
56
<field name="group_lot_on_delivery_slip" eval="1"/>
67
<field name="group_project_stages" eval="1"/>
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
import { registry } from '@web/core/registry';
2+
3+
registry.category("web_tour.tours").add("purchase_lot_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 lg ai"
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 lg dual "
29+
},
30+
{
31+
"trigger": ".o-autocomplete--dropdown-item:nth-child(1) > a",
32+
"run": "click"
33+
},
34+
{
35+
"trigger": ".o_field_widget[name='product_qty'] > .o_input",
36+
"run": "edit 6"
37+
},
38+
{
39+
"trigger": ".o_statusbar_buttons > button[name='button_confirm']",
40+
"run": "click"
41+
},
42+
{
43+
"trigger": ".oe_stat_button[name='action_view_picking']",
44+
"run": "click"
45+
},
46+
{
47+
"trigger": ".o_data_cell:nth-child(6) > button[name='Open\\ Move']",
48+
"run": "click"
49+
},
50+
{
51+
"trigger": ".o_widget:nth-child(1) > button",
52+
"run": "click"
53+
},
54+
{
55+
"trigger": ".o_field_widget[name='next_serial'] > .o_input",
56+
"run": "edit 21"
57+
},
58+
{
59+
"trigger": ".o-overlay-item:nth-child(2) button:nth-child(1)",
60+
"run": "click"
61+
},
62+
{
63+
"trigger": "footer > .o_form_button_save",
64+
"run": "click"
65+
},
66+
{
67+
"trigger": ".o_statusbar_buttons > button[name='button_validate']",
68+
"run": "click"
69+
},
70+
{
71+
"trigger": ".o_menu_brand",
72+
"run": "click"
73+
},
74+
{
75+
"trigger": ".o_app[data-menu-xmlid='stock\\.menu_stock_root']",
76+
"run": "click"
77+
},
78+
{
79+
"trigger": ".o_kanban_record:nth-child(1) .oe_kanban_action[name='get_action_picking_tree_ready']",
80+
"run": "click"
81+
},
82+
{
83+
"trigger": ".o_searchview_facet:nth-child(2) .o_facet_remove",
84+
"run": "click"
85+
},
86+
{
87+
"trigger": ".o_data_row:nth-child(13) > .o_data_cell[name='partner_id']",
88+
"run": "click"
89+
},
90+
{
91+
"trigger": ".o_menu_brand",
92+
"run": "click"
93+
}
94+
]
95+
})

0 commit comments

Comments
 (0)