fix: WIP needs to be set before submit on skip_transfer (#26499)

This commit is contained in:
Noah Jacob 2021-07-15 15:31:42 +05:30 committed by GitHub
parent 5ad759897f
commit eeecb25a02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -239,7 +239,7 @@ class WorkOrder(Document):
self.create_serial_no_batch_no()
def on_submit(self):
if not self.wip_warehouse:
if not self.wip_warehouse and not self.skip_transfer:
frappe.throw(_("Work-in-Progress Warehouse is required before Submit"))
if not self.fg_warehouse:
frappe.throw(_("For Warehouse is required before Submit"))