[company] [setup] added on_doctype_update to add indexes, renamed make_obj to make_controller

This commit is contained in:
Rushabh Mehta
2013-06-28 12:49:28 +05:30
parent e5dfc6c440
commit 03e9a4ea11
6 changed files with 33 additions and 32 deletions

View File

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