fix: don't set WIP Warehouse if is checked in WO

This commit is contained in:
Sagar Sharma 2022-11-10 16:18:10 +05:30
parent c16553626f
commit 9730cd0aec

View File

@ -146,7 +146,7 @@ class WorkOrder(Document):
frappe.throw(_("Sales Order {0} is {1}").format(self.sales_order, status))
def set_default_warehouse(self):
if not self.wip_warehouse:
if not self.wip_warehouse and not self.skip_transfer:
self.wip_warehouse = frappe.db.get_single_value(
"Manufacturing Settings", "default_wip_warehouse"
)