Fixes update_after_submit validation errors

This commit is contained in:
Anand Doshi
2014-04-17 12:35:04 +05:30
parent 0d345c9152
commit dbfcd328fb
3 changed files with 4 additions and 0 deletions

View File

@@ -56,4 +56,5 @@ class TimeLogBatch(Document):
tl = frappe.get_doc("Time Log", d.time_log)
tl.time_log_batch = time_log_batch
tl.sales_invoice = self.sales_invoice
tl.ignore_validate_update_after_submit = True
tl.save()