From 50a0cadb9f32d621a0e479aff443527fbefc66e4 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 2 May 2012 10:32:28 +0530 Subject: [PATCH 1/2] cleanup property setter patch --- erpnext/patches/may_2012/__init__.py | 0 erpnext/patches/may_2012/cleanup_property_setter.py | 3 +++ 2 files changed, 3 insertions(+) create mode 100644 erpnext/patches/may_2012/__init__.py create mode 100644 erpnext/patches/may_2012/cleanup_property_setter.py diff --git a/erpnext/patches/may_2012/__init__.py b/erpnext/patches/may_2012/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/erpnext/patches/may_2012/cleanup_property_setter.py b/erpnext/patches/may_2012/cleanup_property_setter.py new file mode 100644 index 0000000000..2aa3509540 --- /dev/null +++ b/erpnext/patches/may_2012/cleanup_property_setter.py @@ -0,0 +1,3 @@ +def execute(): + import webnotes + webnotes.conn.sql("delete from `tabProperty Setter` where property in ('width', 'previous_field')") From dd200d363ec5e857a6a4b69449edc9d1b8a370d6 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 2 May 2012 10:36:16 +0530 Subject: [PATCH 2/2] cleanup property setter patch --- erpnext/patches/may_2012/cleanup_property_setter.py | 2 ++ erpnext/patches/patch_list.py | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/erpnext/patches/may_2012/cleanup_property_setter.py b/erpnext/patches/may_2012/cleanup_property_setter.py index 2aa3509540..f4e3ef8067 100644 --- a/erpnext/patches/may_2012/cleanup_property_setter.py +++ b/erpnext/patches/may_2012/cleanup_property_setter.py @@ -1,3 +1,5 @@ def execute(): import webnotes webnotes.conn.sql("delete from `tabProperty Setter` where property in ('width', 'previous_field')") + + webnotes.conn.sql("delete from `tabSingles` where field = 'footer_font_color' and doctype = 'Style Settings'") diff --git a/erpnext/patches/patch_list.py b/erpnext/patches/patch_list.py index 8002078883..e491b4c485 100644 --- a/erpnext/patches/patch_list.py +++ b/erpnext/patches/patch_list.py @@ -312,5 +312,10 @@ patch_list = [ 'patch_file': 'repost_stock_for_posting_time', 'description': 'repost stock for posting time 00:00:seconds' }, + { + 'patch_module': 'patches.may_2012', + 'patch_file': 'cleanup_property_setter', + 'description': 'cleanup_property_setter' + }, ]