summaryrefslogtreecommitdiff
path: root/odoo/addons
diff options
context:
space:
mode:
authorAlexandre Kühn <aku@odoo.com>2018-09-17 12:20:55 +0200
committerAlexandre Kühn <aku@odoo.com>2018-09-17 16:46:53 +0200
commit38c7ed3c73eb5efc370c6ac0050e38ca8810e59e (patch)
tree38c0be1036a41b7c4bb01585d74fdc56c3e227a3 /odoo/addons
parent19eacf7d23c9413de4430a3422b5ed74b37ef242 (diff)
[FIX] *: adapt tours for the new community navbar
*: crm, hr_expense, hr_recruitment, point_of_sale, project, sale, stock, web_tour, test_main_flows, test_new_api To sum up: - Click on "Apps Menu" then the app item. (previously: click on '+' then the app item). - Click on navbar section menu item. (previously: click on sidebar section menu item).
Diffstat (limited to 'odoo/addons')
-rw-r--r--odoo/addons/test_main_flows/static/src/js/tour.js66
-rw-r--r--odoo/addons/test_new_api/static/tests/x2many.js22
2 files changed, 48 insertions, 40 deletions
diff --git a/odoo/addons/test_main_flows/static/src/js/tour.js b/odoo/addons/test_main_flows/static/src/js/tour.js
index e0f209c2232..717c9d81884 100644
--- a/odoo/addons/test_main_flows/static/src/js/tour.js
+++ b/odoo/addons/test_main_flows/static/src/js/tour.js
@@ -9,19 +9,24 @@ var _t = core._t;
tour.register('main_flow_tour', {
test: true,
url: "/web",
-}, [tour.STEPS.MENU_MORE, {
- trigger: '.o_app[data-menu-xmlid="sale.sale_menu_root"], .oe_menu_toggler[data-menu-xmlid="sale.sale_menu_root"]',
+}, [tour.STEPS.SHOW_APPS_MENU_ITEM, {
+ trigger: '.o_app[data-menu-xmlid="sale.sale_menu_root"]',
+ content: _t('Organize your sales activities with the <b>Sales app</b>.'),
+ position: 'right',
+ edition: 'community'
+}, {
+ trigger: '.o_app[data-menu-xmlid="sale.sale_menu_root"]',
content: _t('Organize your sales activities with the <b>Sales app</b>.'),
position: 'bottom',
+ edition: 'enterprise'
}, {
// Add Stockable product
- edition: "enterprise",
trigger: ".o_menu_sections a:contains('Products')",
extra_trigger: '.o_main_navbar',
content: _t("Let\'s create products."),
position: "bottom",
}, {
- trigger: ".o_menu_sections a:has(span:contains('Products')), .oe_secondary_submenu .oe_menu_text:contains('Products'):first",
+ trigger: ".o_menu_sections a:has(span:contains('Products'))",
content: _t("Let\'s create products."),
position: "bottom"
}, {
@@ -269,10 +274,16 @@ tour.register('main_flow_tour', {
trigger: '.o_menu_toggle',
content: _t('Go back to the home menu'),
position: 'bottom',
+}, tour.STEPS.SHOW_APPS_MENU_ITEM, {
+ trigger: '.o_app[data-menu-xmlid="crm.crm_menu_root"]',
+ content: _t('Organize your sales activities with the <b>CRM app</b>.'),
+ position: 'right',
+ edition: 'community'
}, {
- trigger: '.o_app[data-menu-xmlid="crm.crm_menu_root"], .oe_menu_toggler[data-menu-xmlid="crm.crm_menu_root"]',
+ trigger: '.o_app[data-menu-xmlid="crm.crm_menu_root"]',
content: _t('Organize your sales activities with the <b>CRM app</b>.'),
position: 'bottom',
+ edition: 'enterprise'
}, {
trigger: ".o-kanban-button-new",
extra_trigger: '.o_opportunity_kanban',
@@ -390,17 +401,22 @@ tour.register('main_flow_tour', {
trigger: '.o_menu_toggle',
content: _t('Go back to the home menu'),
position: 'bottom',
+}, tour.STEPS.SHOW_APPS_MENU_ITEM, {
+ trigger: '.o_app:contains("Inventory")',
+ content: _t('Go to Inventory'),
+ position: 'right',
+ edition: 'community'
}, {
- trigger: '.o_app > div:contains("Inventory"), .oe_menu_toggler:contains("Inventory")',
+ trigger: '.o_app > div:contains("Inventory")',
content: _t('Go to Inventory'),
position: 'bottom',
+ edition: 'enterprise'
}, {
- edition: "enterprise",
trigger: ".o_menu_sections a:contains('Master Data')",
content: _t("Go to Master Data"),
position: "bottom"
}, {
- trigger: ".o_menu_sections a[data-menu-xmlid='stock.menu_reordering_rules_config'], .oe_secondary_submenu a[data-menu-xmlid='stock.menu_reordering_rules_config']",
+ trigger: ".o_menu_sections a[data-menu-xmlid='stock.menu_reordering_rules_config']",
content: _t("Reordering Rules"),
position: "bottom"
}, {
@@ -431,12 +447,11 @@ tour.register('main_flow_tour', {
position: "bottom"
}, {
// Run the schedulers
- edition: "enterprise",
trigger: ".o_menu_sections a:contains('Operations')",
content: _t("Go to Run Schedulers"),
position: "bottom"
},{
- trigger: ".o_menu_sections a[data-menu-xmlid='stock.menu_procurement_compute'], .oe_secondary_submenu a[data-menu-xmlid='stock.menu_procurement_compute']",
+ trigger: ".o_menu_sections a[data-menu-xmlid='stock.menu_procurement_compute']",
content: _t("Click on schedulers"),
position: "bottom"
}, {
@@ -450,10 +465,16 @@ tour.register('main_flow_tour', {
trigger: '.o_menu_toggle',
content: _t('Go back to the home menu'),
position: 'bottom',
+}, tour.STEPS.SHOW_APPS_MENU_ITEM, {
+ trigger: '.o_app:contains("Purchase")',
+ content: _t('Go to Purchase'),
+ position: 'right',
+ edition: 'community'
}, {
- trigger: '.o_app > div:contains("Purchase"), .oe_menu_toggler:contains("Purchase")',
+ trigger: '.o_app > div:contains("Purchase")',
content: _t('Go to Purchase'),
position: 'bottom',
+ edition: 'enterprise'
}, {
trigger: '.o_data_row:has(.o_data_cell:contains("the_flow.vendor"))',
content: _t('Select the generated request for quotation'),
@@ -507,17 +528,21 @@ tour.register('main_flow_tour', {
trigger: '.o_menu_toggle',
content: _t('Go back to the home menu'),
position: 'bottom',
+}, tour.STEPS.SHOW_APPS_MENU_ITEM, {
+ trigger: '.o_app:contains("Manufacturing")',
+ content: _t('Go to Manufacturing'),
+ position: 'right',
+ edition: 'community'
}, {
- trigger: '.o_app > div:contains("Manufacturing"), .oe_menu_toggler:contains("Manufacturing")',
+ trigger: '.o_app > div:contains("Manufacturing")',
content: _t('Go to Manufacturing'),
position: 'bottom',
+ edition: 'enterprise'
}, {
- edition: "enterprise",
trigger: ".o_menu_sections a[data-menu-xmlid='mrp.menu_mrp_manufacturing']",
content: _t('Click on Operations menuitem'),
position: 'bottom',
}, {
- edition: "enterprise",
trigger: ".o_menu_sections a[data-menu-xmlid='mrp.menu_mrp_production_action']",
content: _t('Open manufacturing orders'),
position: 'bottom',
@@ -546,17 +571,22 @@ tour.register('main_flow_tour', {
trigger: '.o_menu_toggle',
content: _t('Go back to the home menu'),
position: 'bottom',
+}, tour.STEPS.SHOW_APPS_MENU_ITEM, {
+ trigger: '.o_app[data-menu-xmlid="sale.sale_menu_root"]',
+ content: _t('Organize your sales activities with the <b>Sales app</b>.'),
+ position: 'bottom',
+ edition: 'community'
}, {
- trigger: '.o_app[data-menu-xmlid="sale.sale_menu_root"], .oe_menu_toggler[data-menu-xmlid="sale.sale_menu_root"]',
+ trigger: '.o_app[data-menu-xmlid="sale.sale_menu_root"]',
content: _t('Organize your sales activities with the <b>Sales app</b>.'),
position: 'bottom',
+ edition: 'enterprise'
}, {
- edition: "enterprise",
trigger: ".o_menu_sections a[data-menu-xmlid='sale.sale_order_menu']",
content: _t("Go to Sales menu"),
position: "bottom"
}, {
- trigger: ".o_menu_sections a[data-menu-xmlid='sale.menu_sale_order'], .oe_secondary_submenu a[data-menu-xmlid='sale.menu_sale_order']",
+ trigger: ".o_menu_sections a[data-menu-xmlid='sale.menu_sale_order']",
content: _t("Go to the sales orders"),
position: "bottom"
}, {
@@ -641,7 +671,7 @@ tour.register('main_flow_tour', {
position: 'bottom',
}, {
edition: "enterprise",
- trigger: '.o_app[data-menu-xmlid="account.menu_finance"], .oe_menu_toggler[data-menu-xmlid="account.menu_finance"]',
+ trigger: '.o_app[data-menu-xmlid="account.menu_finance"]',
content: _t('Go to Accounting'),
position: 'bottom',
}, {
diff --git a/odoo/addons/test_new_api/static/tests/x2many.js b/odoo/addons/test_new_api/static/tests/x2many.js
index b66981a9c48..a3a54c23bff 100644
--- a/odoo/addons/test_new_api/static/tests/x2many.js
+++ b/odoo/addons/test_new_api/static/tests/x2many.js
@@ -330,22 +330,11 @@ odoo.define('web.test.x2many', function (require) {
{
content: "switch to the second form view to test one2many with editable list (toggle menu dropdown)",
- trigger: '.o_sub_menu .oe_secondary_submenu .oe_menu_leaf .oe_menu_text:containsExact(Discussions)',
- extra_trigger: '.tab-pane:eq(0) .o_field_widget tbody .o_data_row:eq(2)',
- edition: 'community'
- }, {
- content: "switch to the second form view to test one2many with editable list (toggle menu dropdown)",
trigger: 'nav .o_menu_sections .dropdown-toggle:containsExact(Discussions)',
extra_trigger: '.tab-pane:eq(0) .o_field_widget tbody .o_data_row:eq(2)',
- edition: 'enterprise'
- }, {
- content: "switch to the second form view to test one2many with editable list (open submenu)",
- trigger: '.o_sub_menu .oe_secondary_submenu .oe_menu_leaf .oe_menu_text:contains(Discussions 2)',
- edition: 'community'
}, {
content: "switch to the second form view to test one2many with editable list (open submenu)",
trigger: 'nav .o_menu_sections .dropdown-item:contains(Discussions 2)',
- edition: 'enterprise'
}, {
content: "select previous created record",
trigger: 'td:contains(test_trigger):last',
@@ -458,22 +447,11 @@ odoo.define('web.test.x2many', function (require) {
{
content: "switch to the third form view to test onchange changing one2many (toggle menu dropdown)",
- trigger: '.o_sub_menu .oe_secondary_submenu .oe_menu_leaf .oe_menu_text:containsExact(Discussions)',
- extra_trigger: '.tab-pane:eq(0) .o_field_widget tbody .o_data_row:eq(2)',
- edition: 'community'
- }, {
- content: "switch to the third form view to test onchange changing one2many (toggle menu dropdown)",
trigger: 'nav .o_menu_sections .dropdown-toggle:containsExact(Discussions)',
extra_trigger: '.tab-pane:eq(0) .o_field_widget tbody .o_data_row:eq(2)',
- edition: 'enterprise'
- }, {
- content: "switch to the thied form view to test onchange changing one2many (open submenu)",
- trigger: '.o_sub_menu .oe_secondary_submenu .oe_menu_leaf .oe_menu_text:contains(Discussions 3)',
- edition: 'community'
}, {
content: "switch to the thied form view to test onchange changing one2many (open submenu)",
trigger: 'nav .o_menu_sections .dropdown-item:contains(Discussions 3)',
- edition: 'enterprise'
}, {
content: "wait web client",
trigger: '.breadcrumb:contains(Discussions 3)',