fix: linters failing

This commit is contained in:
Rohit Waghchaure 2022-11-16 23:23:06 +05:30
parent 7bd06e6fbc
commit ffa30127e7

View File

@ -96,9 +96,8 @@ class WorkOrder(Document):
def validate_workstation_type(self): def validate_workstation_type(self):
for row in self.operations: for row in self.operations:
if not row.workstation and not row.workstation_type: if not row.workstation and not row.workstation_type:
frappe.throw( msg = f"Row {row.idx}: Workstation or Workstation Type is mandatory for an operation {row.operation}"
_(f"Row {row.idx}: Workstation or Workstation Type is mandatory for {row.operation}") frappe.throw(_(msg))
)
def validate_sales_order(self): def validate_sales_order(self):
if self.sales_order: if self.sales_order: