mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 20:29:09 +00:00
[company] [setup] added on_doctype_update to add indexes, renamed make_obj to make_controller
This commit is contained in:
@@ -49,7 +49,7 @@ def execute():
|
||||
for key in custom_map["Timesheet Detail"]:
|
||||
tl.doc.fields[key] = tsd.fields.get(key)
|
||||
|
||||
tl.make_obj()
|
||||
tl.make_controller()
|
||||
tl.controller.set_status()
|
||||
tl.controller.calculate_total_hours()
|
||||
tl.doc.insert()
|
||||
|
||||
Reference in New Issue
Block a user