-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
57 changed files
with
1,630 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 79 additions & 0 deletions
79
art_craft/static/src/js/tours/consignment_purchase_tour.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.