fix in patch order
diff --git a/erpnext/patches/mar_2012/doctype_get_refactor.py b/erpnext/patches/mar_2012/doctype_get_refactor.py
index c450e0a..819cd83 100644
--- a/erpnext/patches/mar_2012/doctype_get_refactor.py
+++ b/erpnext/patches/mar_2012/doctype_get_refactor.py
@@ -16,6 +16,9 @@
change_to_decimal()
def change_property_setter_fieldnames():
+ import webnotes.model.sync
+ webnotes.model.sync.sync('core', 'property_setter')
+
docfield_list = webnotes.conn.sql("""\
SELECT name, fieldname FROM `tabDocField`""", as_list=1)
custom_field_list = webnotes.conn.sql("""\
diff --git a/erpnext/patches/patch_list.py b/erpnext/patches/patch_list.py
index 4caf82e..d0188b4 100644
--- a/erpnext/patches/patch_list.py
+++ b/erpnext/patches/patch_list.py
@@ -213,6 +213,31 @@
'description': 'Reload POS Invoice'
},
{
+ 'patch_module': 'patches.jan_mar_2012',
+ 'patch_file': 'reload_mapper',
+ 'description': 'SO-DN, SO-Rv, DN-RV'
+ },
+ {
+ 'patch_module': 'patches.jan_mar_2012',
+ 'patch_file': 'mapper_fix',
+ 'description': 'DN-RV duplicate table entry'
+ },
+ {
+ 'patch_module': 'patches.jan_mar_2012',
+ 'patch_file': 'so_rv_mapper_fix',
+ 'description': 'SO-RV duplicate mapper entry removal'
+ },
+ {
+ 'patch_module': 'patches.jan_mar_2012',
+ 'patch_file': 'sync_ref_db',
+ 'description': 'Deletes non required doctypes'
+ },
+ {
+ 'patch_module': 'patches.jan_mar_2012',
+ 'patch_file': 'rename_dt',
+ 'description': 'Rename DocType Patch'
+ },
+ {
'patch_module': 'patches.mar_2012',
'patch_file': 'cleanup_control_panel',
'description': 'Remove email related fields from Control Panel'
@@ -232,19 +257,4 @@
'patch_file': 'delete_docformat',
'description': 'Deletes DocFormat from database'
},
- {
- 'patch_module': 'patches.jan_mar_2012',
- 'patch_file': 'reload_mapper',
- 'description': 'SO-DN, SO-Rv, DN-RV'
- },
- {
- 'patch_module': 'patches.jan_mar_2012',
- 'patch_file': 'mapper_fix',
- 'description': 'DN-RV duplicate table entry'
- },
- {
- 'patch_module': 'patches.mar_2012',
- 'patch_file': 'so_rv_mapper_fix',
- 'description': 'SO-RV duplicate mapper entry removal'
- },
]