summaryrefslogtreecommitdiff
path: root/addons/stock/static
diff options
context:
space:
mode:
authorSimon Lejeune <sle@openerp.com>2019-08-22 09:29:08 +0000
committerSimon Lejeune <sle@openerp.com>2019-09-03 15:05:03 +0000
commitb6f053b25ef80599086797a41521c9e5679a015e (patch)
tree6b340fb2ceee9e5ad80a2270f5291912d293dbfe /addons/stock/static
parent504b5fe5a9613bb836bd865475c4b17713b78864 (diff)
[REF] stock: multi company
Ensure proper domains are applied and enforced on relation fields thanks to the `check_company` attributes. product.template - make responsible a property field in order to ensure proper next activities when a product is used between multiple companies stock.putaway.rule - added a company_id field stock.move.line - company_id is not related anymore since a move line can exist without a move until its validation stock.package_level - added a company_id field stock.picking.type - company_id is now required stock.production.lot - added a company_id field, adapted the constraint accordingly stock.quant - check the consistency only in inventory mode stock.quant.package - company_id is now empty if the package is empty stock.picking - company_id is now related to the one of its picking type Added some tests. Moved stock_traceability in the `report` directory. Removed useless /tests/tours/route.js. task-1985992
Diffstat (limited to 'addons/stock/static')
-rw-r--r--addons/stock/static/tests/tours/route.js56
1 files changed, 0 insertions, 56 deletions
diff --git a/addons/stock/static/tests/tours/route.js b/addons/stock/static/tests/tours/route.js
deleted file mode 100644
index 9c29d3f6ada..00000000000
--- a/addons/stock/static/tests/tours/route.js
+++ /dev/null
@@ -1,56 +0,0 @@
-odoo.define('stock.tour', function (require) {
-'use strict';
-
-var tour = require('web_tour.tour');
-
-tour.register('stock', {
- test: true,
- url: '/web?debug=1#action=stock.action_stock_config_settings',
- },
- [
- {
- content: "wait web client",
- trigger: ".o_base_settings",
- run: function() {}
- },
- {
- content: "active 'Multi-Step Routes'",
- trigger: '.o_field_boolean[name="group_stock_adv_location"]',
- run: function() {
- if (!this.$anchor.find('input').prop('checked')) {
- this.$anchor.find('label').click();
- $('.o_statusbar_buttons button[name="execute"]').click();
- }
- }
- },
- {
- content: "list of product variants",
- trigger: '.o_menu_sections [data-menu-xmlid="stock.menu_product_variant_config_stock"]',
- extra_trigger: '.o_menu_sections:has(a[data-menu-xmlid="stock.menu_routes_config"])',
- timeout: 5000,
- },
- {
- content: "select a product variant",
- trigger: '.oe_kanban_global_click:first',
- },
- {
- content: "click on routes",
- trigger: 'button.oe_stat_button i.fa-cogs',
- },
- {
- content: "print the report",
- trigger: 'button[name="print_report"]',
- },
- {
- content: "print inside the report and check the breadcrum",
- trigger: '.o_content iframe .o_report_stock_rule_rule_name',
- extra_trigger: 'ol.breadcrumb li:eq(2).active',
- },
- {
- content: "print the report",
- trigger: 'ol.breadcrumb li:eq(3).active',
- },
- ]
-);
-
-});