Skip to content

Commit

Permalink
fix: don't set WIP Warehouse if is checked in WO
Browse files Browse the repository at this point in the history
(cherry picked from commit 9730cd0)
  • Loading branch information
s-aga-r authored and mergify[bot] committed Nov 10, 2022
1 parent f2a1596 commit f923183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/manufacturing/doctype/work_order/work_order.py
Expand Up @@ -146,7 +146,7 @@ def check_sales_order_on_hold_or_close(self):
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"
)
Expand Down

0 comments on commit f923183

Please sign in to comment.