mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 00:44:45 +00:00
[Fix] Timesheet patch
This commit is contained in:
@@ -10,5 +10,6 @@ def execute():
|
|||||||
ts = frappe.get_doc('Timesheet', data.name)
|
ts = frappe.get_doc('Timesheet', data.name)
|
||||||
ts.update_cost()
|
ts.update_cost()
|
||||||
ts.calculate_total_amounts()
|
ts.calculate_total_amounts()
|
||||||
|
ts.flags.ignore_validate = True
|
||||||
ts.flags.ignore_validate_update_after_submit = True
|
ts.flags.ignore_validate_update_after_submit = True
|
||||||
ts.save()
|
ts.save()
|
||||||
|
|||||||
Reference in New Issue
Block a user