Fixes in maintenance schedule
This commit is contained in:
parent
a46af033b9
commit
4e4a83bcef
@ -3,7 +3,7 @@
|
||||
|
||||
from __future__ import unicode_literals
|
||||
import frappe
|
||||
|
||||
from frappe import _
|
||||
from frappe.utils import flt
|
||||
from frappe.utils.nestedset import NestedSet
|
||||
|
||||
|
@ -40,9 +40,8 @@ class MaintenanceSchedule(TransactionBase):
|
||||
child.idx = count
|
||||
count = count + 1
|
||||
child.sales_person = d.sales_person
|
||||
child.save(1)
|
||||
|
||||
self.on_update()
|
||||
self.save()
|
||||
|
||||
def on_submit(self):
|
||||
if not self.get('maintenance_schedule_detail'):
|
||||
|
Loading…
Reference in New Issue
Block a user