From 688824ed307c75eb3453d86aa32ae1efac7a6e2e Mon Sep 17 00:00:00 2001 From: "Tiffany Chang (tic)" Date: Fri, 15 May 2020 10:01:44 +0000 Subject: [PATCH] [IMP] stock: don't show layout config before Routes diagram When an external report layout has not been setup and an admin user tries to click on Routes: View Diagram within a product form > Inventory then the document template setup would open even though it is not necessary for this diagram. Specification 10 of inventory usability task. Task: 2206279 Related Enterprise PR: odoo/enterprise#10723 --- addons/stock/models/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/models/product.py b/addons/stock/models/product.py index b7f9ce7e06c..7118178bddc 100644 --- a/addons/stock/models/product.py +++ b/addons/stock/models/product.py @@ -797,7 +797,7 @@ class ProductTemplate(models.Model): return self.env.ref('stock.action_report_stock_rule').report_action(None, data={ 'product_id': products.id, 'warehouse_ids': warehouse.ids, - }) + }, config=False) action = self.env.ref('stock.action_stock_rules_report').read()[0] action['context'] = self.env.context return action