fix in setup control and patch to fix existing docstatus problem
diff --git a/patches/patch_list.py b/patches/patch_list.py
index f750ac0..c8f814a 100644
--- a/patches/patch_list.py
+++ b/patches/patch_list.py
@@ -623,4 +623,8 @@
'patch_module': 'patches.october_2012',
'patch_file': 'remove_old_customer_contact_address',
},
+ {
+ 'patch_module': 'patches.october_2012',
+ 'patch_file': 'company_fiscal_year_docstatus_patch',
+ },
]
diff --git a/setup/doctype/setup_control/setup_control.py b/setup/doctype/setup_control/setup_control.py
index 33e2e83..b06fdca 100644
--- a/setup/doctype/setup_control/setup_control.py
+++ b/setup/doctype/setup_control/setup_control.py
@@ -192,10 +192,13 @@
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'):