From f221936f8b9e64d371c2593210797b36ef6d032c Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Fri, 8 Feb 2019 12:16:52 +0000 Subject: [PATCH] [FIX] stock: location company Force the location and destination location's company to match with the picking and picking type company. This is to prevent users to move products between companies without using a transit location, since stock valuation is not supported. The record rule `stock_location_comp_rule` gives access to children companies. The domain added in the view is more restrictive, and allows, for a company A, transfers from locations: Company A -> Company A Company A -> No Company No Company -> Company A opw-1893276 closes odoo/odoo#30952 --- addons/stock/views/stock_picking_views.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/stock/views/stock_picking_views.xml b/addons/stock/views/stock_picking_views.xml index 7ed81ba0050..4cf829796d4 100644 --- a/addons/stock/views/stock_picking_views.xml +++ b/addons/stock/views/stock_picking_views.xml @@ -55,8 +55,8 @@ - - + + @@ -229,8 +229,8 @@ - - + +