mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 12:49:10 +00:00
fix: job card - sub operations table status misbehaviour on pause / resume Job Card
This commit is contained in:
@@ -48,7 +48,7 @@ class JobCard(Document):
|
|||||||
self.validate_work_order()
|
self.validate_work_order()
|
||||||
|
|
||||||
def set_sub_operations(self):
|
def set_sub_operations(self):
|
||||||
if self.operation:
|
if not self.sub_operations and self.operation:
|
||||||
self.sub_operations = []
|
self.sub_operations = []
|
||||||
for row in frappe.get_all('Sub Operation',
|
for row in frappe.get_all('Sub Operation',
|
||||||
filters = {'parent': self.operation}, fields=['operation', 'idx'], order_by='idx'):
|
filters = {'parent': self.operation}, fields=['operation', 'idx'], order_by='idx'):
|
||||||
|
|||||||
Reference in New Issue
Block a user