Merge pull request #19477 from rohitwaghchaure/production_plan_warehouse_not_changed

fix: Wrong warehouse fetched in production plan
This commit is contained in:
rohitwaghchaure 2019-11-01 16:46:46 +05:30 committed by GitHub
commit 475d8e3cdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -622,7 +622,7 @@ def get_items_for_material_requests(doc, ignore_existing_ordered_qty=None):
for data in po_items:
planned_qty = data.get('required_qty') or data.get('planned_qty')
ignore_existing_ordered_qty = data.get('ignore_existing_ordered_qty') or ignore_existing_ordered_qty
warehouse = data.get("warehouse") or warehouse
warehouse = warehouse or data.get("warehouse")
item_details = {}
if data.get("bom") or data.get("bom_no"):