fixed: check if submitted before saving
This commit is contained in:
parent
158c9ac4ec
commit
987d5f1cba
1 changed files with 0 additions and 3 deletions
|
|
@ -32,9 +32,6 @@ def update_event(args, field_map):
|
|||
|
||||
w = webnotes.model_wrapper(args.doctype, args.name)
|
||||
|
||||
if w.doc.docstatus == 1:
|
||||
w.no_permission_to(_("Save a submitted document"))
|
||||
|
||||
w.doc.fields[field_map.start] = args[field_map.start]
|
||||
w.doc.fields[field_map.end] = args[field_map.end]
|
||||
w.save()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue