mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-04 05:58:27 +00:00
fix in setup control and patch to fix existing docstatus problem
This commit is contained in:
@@ -192,10 +192,13 @@ class DocType:
|
||||
rec = Document(d)
|
||||
for fn in master_dict[d].keys():
|
||||
rec.fields[fn] = master_dict[d][fn]
|
||||
# add blank fields
|
||||
for fn in rec.fields:
|
||||
if fn not in master_dict[d].keys()+['name','owner','doctype']:
|
||||
rec.fields[fn] = ''
|
||||
|
||||
# Note: I have no idea why this was there!
|
||||
# # add blank fields
|
||||
# for fn in rec.fields:
|
||||
# if fn not in master_dict[d].keys()+['name','owner','doctype']:
|
||||
# rec.fields[fn] = ''
|
||||
|
||||
rec_obj = get_obj(doc=rec)
|
||||
rec_obj.doc.save(1)
|
||||
if hasattr(rec_obj, 'on_update'):
|
||||
|
||||
Reference in New Issue
Block a user