summaryrefslogtreecommitdiff
path: root/addons/stock/static
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2020-09-01 12:08:17 +0000
committerMartin Trigaux <mat@odoo.com>2020-09-04 09:44:02 +0000
commit4d43a301fd10cfeb498d9bf6b614779e26e12d16 (patch)
treef623f943325421605228d08ec0b1244f330537db /addons/stock/static
parent177d5e833989a40726eff040ec1cc25bdef48c06 (diff)
[FIX] base: add fake fields
Values for "context" and "data" key were injected into the action dictionnary by report_action to be used by the /report controller later Courtesy of William Henrotin (whe) for the test
Diffstat (limited to 'addons/stock/static')
-rw-r--r--addons/stock/static/tests/tours/stock_report_tests.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/addons/stock/static/tests/tours/stock_report_tests.js b/addons/stock/static/tests/tours/stock_report_tests.js
new file mode 100644
index 00000000000..c757390fa51
--- /dev/null
+++ b/addons/stock/static/tests/tours/stock_report_tests.js
@@ -0,0 +1,23 @@
+odoo.define('stock.reports.setup.tour', function (require) {
+ "use strict";
+
+ const tour = require('web_tour.tour');
+
+ tour.register('test_stock_route_diagram_report', {
+ test: true,
+ }, [
+ {
+ trigger: '.o_kanban_record',
+ extra_trigger:'.breadcrumb',
+ },
+ {
+ trigger: '.nav-item > a:contains("Inventory")',
+ },
+ {
+ trigger: '.btn[id="stock.view_diagram_button"]',
+ },
+ {
+ trigger: 'iframe .o_report_stock_rule',
+ },
+ ]);
+});