fix: don't set WIP Warehouse if is checked in WO
This commit is contained in:
parent
c16553626f
commit
9730cd0aec
@ -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"
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user