From 2fd14db57433d08ab368a7e18d18ae8d49dafab1 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Wed, 25 Nov 2015 14:29:50 +0100 Subject: [PATCH] [FIX] stock: multi-company rule for `stock.quant`. `stock.move` & `stock.product` have multi-company rules. There is therefore no reason why `stock.quant` could not have one. Besides, this could lead to access rights issues, when a user went to the `Quants` list, in Warehouse > Traceability > Quants, while there were quants for products in a company different than the user company. opw-653188 --- addons/stock/security/stock_security.xml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/addons/stock/security/stock_security.xml b/addons/stock/security/stock_security.xml index 044ff1333cde..8689b9094f3c 100644 --- a/addons/stock/security/stock_security.xml +++ b/addons/stock/security/stock_security.xml @@ -80,6 +80,13 @@ ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] + + stock_quant multi-company + + + ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] + + Inventory Line multi-company