summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorguimarc-br <guimarc@br.ibm.com>2021-03-04 00:39:30 +0000
committerguimarc-br <guimarc@br.ibm.com>2021-05-07 12:44:04 +0000
commit9f837a736ddff365daaf4006607af3e2c0782d61 (patch)
tree2caa3d63f845e90155b22ed431f6b5b463fc1472 /addons
parent3b8e1e0e30e4d7ec0eb4b1a4b3c4c54132028748 (diff)
[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
Diffstat (limited to 'addons')
-rw-r--r--addons/stock/views/product_strategy_views.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/stock/views/product_strategy_views.xml b/addons/stock/views/product_strategy_views.xml
index 9e03118a00a..02fa6d0a096 100644
--- a/addons/stock/views/product_strategy_views.xml
+++ b/addons/stock/views/product_strategy_views.xml
@@ -92,7 +92,7 @@
<field name="name">Putaway Rules</field>
<field name="res_model">stock.putaway.rule</field>
<field name="context">{'fixed_location': True}</field>
- <field name="domain">[('location_in_id', '=', active_id)]</field>
+ <field name="domain">['|', ('location_out_id', '=', active_id), ('location_in_id', '=', active_id)]</field>
</record>
<menuitem id="menu_putaway" name="Putaway Rules" parent="stock.menu_warehouse_config"