Skip to content
Snippets Groups Projects
Commit cd7133f0 authored by guimarc-br's avatar guimarc-br
Browse files

[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
parent fe4e2659
No related branches found
No related tags found
No related merge requests found
......@@ -85,7 +85,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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment