Fixes in maintenance schedule

This commit is contained in:
Nabin Hait 2014-06-27 13:16:58 +05:30
parent a46af033b9
commit 4e4a83bcef
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -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'):