[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
This commit is contained in:
@@ -99,7 +99,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"
|
||||
|
||||
Reference in New Issue
Block a user