fix: raw material warehouse in Production Planning Report (#21982)

This commit is contained in:
rohitwaghchaure 2020-05-27 21:53:17 +05:30 committed by GitHub
parent c2aabb0fbf
commit 7ac731dd4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -220,6 +220,9 @@ class ProductionPlanReport(object):
if item_details: if item_details:
warehouses = [item_details["default_warehouse"]] warehouses = [item_details["default_warehouse"]]
if self.filters.raw_material_warehouse:
warehouses = get_child_warehouses(self.filters.raw_material_warehouse)
d.remaining_qty = d.required_qty d.remaining_qty = d.required_qty
self.pick_materials_from_warehouses(d, data, warehouses) self.pick_materials_from_warehouses(d, data, warehouses)