Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ADD] *: Onboarding tours #360

Open
wants to merge 1 commit into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions agriculture_shop/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
'data/website_view.xml',
'data/website_theme_apply.xml',
'data/knowledge_tour.xml',
'data/purchase_tour.xml',
],
'demo': [
'demo/res_partner.xml',
Expand Down Expand Up @@ -69,12 +70,14 @@
'assets': {
'web.assets_backend': [
'agriculture_shop/static/src/js/my_tour.js',
'agriculture_shop/static/src/js/tours/purchase_flow.js',
]
},
'author': 'Odoo S.A.',
"cloc_exclude": [
"data/knowledge_article.xml",
"static/src/js/my_tour.js",
"static/src/js/tours/purchase_flow.js",
"data/website_view.xml",
"demo/website_view.xml",
],
Expand Down
1 change: 1 addition & 0 deletions agriculture_shop/data/knowledge_article.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
<li>Confirm RFQ based on best price</li>
<li><font style="color: var(--color) !important;">Validate the reception for all quantities at once. </font></li>
</ul>
<a class="btn btn-primary mb-2" href="/odoo?tour=purchase_custom_tour" data-bs-original-title="" title="">Purchase Flow Tutorial</a>
<h2 style="margin-bottom: 0px;">
<font class="text-black"><strong>Flow 2: Sales from Website (B2B / B2C) </strong></font>
</h2>
Expand Down
8 changes: 8 additions & 0 deletions agriculture_shop/data/purchase_tour.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="purchase_tour" model="web_tour.tour">
<field name="name">purchase_custom_tour</field>
<field name="sequence">1000</field>
<field name="rainbow_man_message">Good job! You went through all steps of this tour.</field>
</record>
</odoo>
4 changes: 3 additions & 1 deletion agriculture_shop/data/res_config_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
<record id="res_config_account_setting_agriculture" model="res.config.settings">
<field name="group_analytic_accounting" eval="1"/>
<field name="group_product_pricelist" eval="True"/>
<field name="module_purchase_requisition" eval="1"/>
<field name="group_purchase_alternatives" eval="1"/>
</record>
<function name="execute" model="res.config.settings">
<function model="res.config.settings" name="execute">
<value eval="[ref('res_config_account_setting_agriculture')]"/>
</function>
</odoo>
147 changes: 147 additions & 0 deletions agriculture_shop/static/src/js/tours/purchase_flow.js
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does not work

Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
import { registry } from '@web/core/registry';

registry.category("web_tour.tours").add("purchase_custom_tour", {
url: "/odoo",
steps: () => [
{
"trigger": ".o_app[data-menu-xmlid='purchase\\.menu_purchase_root']",
"run": "click"
},
{
"trigger": ".o_list_button_add",
"run": "click"
},
{
"trigger": ".o_field_widget[name='partner_id'] .o-autocomplete--input",
"run": "edit gloster"
},
{
"trigger": ".o-autocomplete--dropdown-item:nth-child(1) > a",
"run": "click"
},
{
"trigger": ".o_field_x2many_list_row_add > a:nth-child(1)",
"run": "click"
},
{
"trigger": ".o_field_product_label_section_and_note_cell .o-autocomplete--input",
"run": "edit on"
},
{
"trigger": ".o-autocomplete--dropdown-item:nth-child(1) > a",
"run": "click"
},
{
"trigger": ".o_form_button_save",
"run": "click"
},
{
"trigger": ".o_notebook_headers a[name='alternative_pos']",
"run": "click"
},
{
"trigger": ".o_field_x2many_list_row_add > a",
"run": "click"
},
{
"trigger": ".o_create_button",
"run": "click"
},
{
"trigger": "main .o_field_widget[name='partner_id'] .o-autocomplete--input",
"run": "edit ast"
},
{
"trigger": ".o-autocomplete--dropdown-item:nth-child(1) > a",
"run": "click"
},
{
"trigger": ".o_section_and_note_list_view a:nth-child(1)",
"run": "click"
},
{
"trigger": ".o_field_product_label_section_and_note_cell .o-autocomplete--input",
"run": "edit on"
},
{
"trigger": ".o-autocomplete--dropdown-item:nth-child(1) > a",
"run": "click"
},
{
"trigger": ".o_field_widget[name='product_qty'] > .o_input",
"run": "edit 100"
},
{
"trigger": ".o-wysiwyg div[contenteditable='true']",
"run": "click"
},
{
"trigger": ".o_data_cell[name='price_unit']",
"run": "click"
},
{
"trigger": ".o_field_widget[name='price_unit'] > .o_input",
"run": "edit 110"
},
{
"trigger": ".o-wysiwyg div[contenteditable='true']",
"run": "click"
},
{
"trigger": "footer > .o_form_button_save",
"run": "click"
},
{
"trigger": ".o_cell button[name='action_compare_alternative_lines']",
"run": "click"
},
{
"trigger": ".o_data_row:nth-child(3) .o_clear_qty_buttons[name='action_choose']",
"run": "click"
},
{
"trigger": ".o_back_button > a",
"run": "click"
},
{
"trigger": ".o_statusbar_buttons > button[name='button_confirm']",
"run": "click"
},
{
"trigger": ".o_technical_modal button[name='action_cancel_alternatives']",
"run": "click"
},
{
"trigger": ".o_statusbar_buttons > button[name='action_view_picking']",
"run": "click"
},
{
"trigger": ".o_data_cell:nth-child(5) > button[name='Open\\ Move']",
"run": "click"
},
{
"trigger": ".o_data_cell[name='lot_name']",
"run": "click"
},
{
"trigger": ".o_field_widget[name='lot_name'] > .o_input",
"run": "edit lot001"
},
{
"trigger": "footer > .o_form_button_save",
"run": "click"
},
{
"trigger": ".o_statusbar_buttons > button[name='button_validate']",
"run": "click"
},
{
"trigger": ".o_breadcrumb li:nth-child(1) > a",
"run": "click"
},
{
"trigger": ".o_menu_brand",
"run": "click"
}
]
})
3 changes: 3 additions & 0 deletions art_craft/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
'data/mail_message.xml',
'data/website_view.xml',
'data/knowledge_tour.xml',
'data/consignment_purchase_tour.xml',
],
'demo': [
'demo/res_partner.xml',
Expand Down Expand Up @@ -79,13 +80,15 @@
'assets': {
'web.assets_backend': [
'art_craft/static/src/js/my_tour.js',
'art_craft/static/src/js/tours/consignment_purchase_tour.js',
]
},
'author': 'Odoo S.A.',
"cloc_exclude": [
"data/knowledge_article.xml",
"data/qweb_view.xml",
"static/src/js/my_tour.js",
"static/src/js/tours/consignment_purchase_tour.js",
"data/website_view.xml",
"demo/website_view.xml",
],
Expand Down
8 changes: 8 additions & 0 deletions art_craft/data/consignment_purchase_tour.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="consignment_purchase_tour" model="web_tour.tour">
<field name="name">consignment_purchase</field>
<field name="sequence">1000</field>
<field name="rainbow_man_message">Good job! You went through all steps of this tour.</field>
</record>
</odoo>
4 changes: 4 additions & 0 deletions art_craft/data/knowledge_article.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@
<li>Validate the reception for all quantities at once.</li>
</ul>
<p><br /></p>
<a class="btn btn-primary mb-2" href="/odoo?tour=purchase_tour" data-bs-original-title="" title="">Purchase Flow Tutorial</a>
<p><br /></p>
<h1 style="margin-bottom: 0px;">Flow 2: Consignment Purchase</h1>
<p style="margin-bottom: 0px;"><br /></p>
<p style="margin-bottom: 0px;">
Expand All @@ -70,6 +72,8 @@
<li>Validate the reception for all quantities at once.</li>
</ul>
<p><br /></p>
<a class="btn btn-primary mb-2" href="/odoo?tour=consignment_purchase" data-bs-original-title="" title="">Consignment Purchase Flow Tutorial</a>
<p><br /></p>
<h1 style="margin-bottom: 0px;">Flow 3: Point of sales - Regular</h1>
<p style="margin-bottom: 0px;"><br /></p>
<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>
Expand Down
79 changes: 79 additions & 0 deletions art_craft/static/src/js/tours/consignment_purchase_tour.js
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does not work

Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
import { registry } from '@web/core/registry';

registry.category("web_tour.tours").add("consignment_purchase", {
url: "/odoo",
steps: () => [
{
"trigger": ".o_app[data-menu-xmlid='purchase\\.menu_purchase_root']",
"run": "click"
},
{
"trigger": ".o_list_button_add",
"run": "click"
},
{
"trigger": ".o_field_widget[name='partner_id'] .o-autocomplete--input",
"run": "edit demo"
},
{
"trigger": ".o-autocomplete--dropdown-item:nth-child(1) > a",
"run": "click"
},
{
"trigger": ".o_field_widget[name='x_is_consignee'] input",
"run": "click"
},
{
"trigger": ".o_field_x2many_list_row_add > a:nth-child(1)",
"run": "click"
},
{
"trigger": ".o_field_product_label_section_and_note_cell .o-autocomplete--input",
"run": "click"
},
{
"trigger": ".o-autocomplete--dropdown-item:nth-child(1) > a",
"run": "click"
},
{
"trigger": ".o_section_and_note_list_view tr:nth-child(3) > td",
"run": "click"
},
{
"trigger": ".o_field_x2many_list_row_add > a:nth-child(1)",
"run": "click"
},
{
"trigger": ".o_field_product_label_section_and_note_cell .o-autocomplete--input",
"run": "click"
},
{
"trigger": ".o-autocomplete--dropdown-item:nth-child(5) > a",
"run": "click"
},
{
"trigger": ".o_section_and_note_list_view tr:nth-child(4) > td",
"run": "click"
},
{
"trigger": ".o_form_button_save",
"run": "click"
},
{
"trigger": ".o_statusbar_buttons > button[name='button_confirm']",
"run": "click"
},
{
"trigger": ".o_stat_text",
"run": "click"
},
{
"trigger": ".o_statusbar_buttons > button[name='button_validate']",
"run": "click"
},
{
"trigger": ".o_menu_brand",
"run": "click"
}
]
})
6 changes: 6 additions & 0 deletions automobile/data/knowledge_article.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
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
provide the lot &amp; Serial No.
</p>
<p><br /></p>
<a class="btn btn-primary mb-2" href="/odoo?tour=purchase_tour" data-bs-original-title="" title="">Purchase Flow Tutorial</a>
<p><br /></p>
<h2>Flow 2: B2B Customer<br /></h2>
<p>
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
Expand All @@ -49,6 +52,9 @@
</span>
<br />
</p>
<p><br /></p>
<a class="btn btn-primary mb-2" href="/odoo?tour=sale_tour" data-bs-original-title="" title="">Sales Flow Tutorial</a>
<p><br /></p>
<p data-o-mail-quote-node="1" data-o-mail-quote="1"><br /></p>
<h2>Flow 3: B2C Customer : Point of Sale<br /></h2>
<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>
Expand Down
3 changes: 3 additions & 0 deletions beverage_distributor/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
'data/pos_config.xml',
'data/res_config_settings.xml',
'data/knowledge_tour.xml',
'data/deposit_management_tour.xml',
],
'demo': [
'demo/website.xml',
Expand Down Expand Up @@ -77,11 +78,13 @@
'assets': {
'web.assets_backend': [
'beverage_distributor/static/src/js/my_tour.js',
'beverage_distributor/static/src/js/tours/deposit_management_tour.js',
]
},
"cloc_exclude": [
"data/knowledge_article.xml",
"static/src/js/my_tour.js",
"static/src/js/tours/deposit_management_tour.js",
"demo/website_view.xml",
],
'license': 'OPL-1',
Expand Down
8 changes: 8 additions & 0 deletions beverage_distributor/data/deposit_management_tour.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="deposit_management_tour" model="web_tour.tour">
<field name="name">deposit_management_tour</field>
<field name="sequence">1000</field>
<field name="rainbow_man_message">Good job! You went through all steps of this tour.</field>
</record>
</odoo>
Loading