From c9ef520bc20bad137112e661146ad7b987e225aa Mon Sep 17 00:00:00 2001 From: guimarc-br Date: Thu, 4 Mar 2021 00:39:30 +0000 Subject: [PATCH] [FIX] stock: add location_out_id field domain into the Putaway Rules menu [REF] models: use stock to implement location_out_id into the Putway Rules Menu Description of the issue/feature this PR addresses: On the Location/Location-ID/PutwayRule we have the fields: location_in_id = When Product Arrives locatio_out_id = Store To As the products arrives in the WH/STOCK location and due the putaway rules goes to other location then we have the fields populated like: location_in_id = WH/Stock location_out_id = location opened in the view. Due this domain setup the list is returning empty, and then the solution that I applied is to check if we have the location selected in the location_in_id or location_out_id and show the entries. Current behavior before PR: Only looking for the from into the location_in_id After PR merged : Looking for the values from the location_in_id or location_out_id. -- TaskID: N/A Fixes : PR 67198 Closes : PR 67198 I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr X-original-commit: cd7133f0c8050398fdf5aa28f8a67a7507245c7b --- addons/stock/views/product_strategy_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/views/product_strategy_views.xml b/addons/stock/views/product_strategy_views.xml index d14318a41f5..967739c950b 100644 --- a/addons/stock/views/product_strategy_views.xml +++ b/addons/stock/views/product_strategy_views.xml @@ -99,7 +99,7 @@ Putaway Rules stock.putaway.rule {'fixed_location': True} - [('location_in_id', '=', active_id)] + ['|', ('location_out_id', '=', active_id), ('location_in_id', '=', active_id)]