mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-29 18:04:46 +00:00
timesheet patch update
This commit is contained in:
@@ -12,7 +12,11 @@ def execute():
|
|||||||
custom_field.doctype = "Custom Field"
|
custom_field.doctype = "Custom Field"
|
||||||
custom_field.dt = "Time Log"
|
custom_field.dt = "Time Log"
|
||||||
custom_field.insert_after = None
|
custom_field.insert_after = None
|
||||||
cf = webnotes.bean(custom_field).insert()
|
try:
|
||||||
|
cf = webnotes.bean(custom_field).insert()
|
||||||
|
except Exception, e:
|
||||||
|
# duplicate custom field
|
||||||
|
pass
|
||||||
|
|
||||||
for name in webnotes.conn.sql_list("""select name from tabTimesheet"""):
|
for name in webnotes.conn.sql_list("""select name from tabTimesheet"""):
|
||||||
ts = webnotes.bean("Timesheet", name)
|
ts = webnotes.bean("Timesheet", name)
|
||||||
|
|||||||
Reference in New Issue
Block a user