From 4e154d2233dc3bdbe7f1e2343ad8f3c787043839 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 6 Mar 2012 11:19:29 +0530 Subject: [PATCH] removed rv series def val --- erpnext/patches/jan_mar_2012/remove_series_defval.py | 3 +++ erpnext/patches/patch_list.py | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 erpnext/patches/jan_mar_2012/remove_series_defval.py diff --git a/erpnext/patches/jan_mar_2012/remove_series_defval.py b/erpnext/patches/jan_mar_2012/remove_series_defval.py new file mode 100644 index 0000000000..123cc41295 --- /dev/null +++ b/erpnext/patches/jan_mar_2012/remove_series_defval.py @@ -0,0 +1,3 @@ +def execute(): + import webnotes + webnotes.conn.sql("update `tabDocField` set `default`='' where parent = 'Receivable Voucher' and fieldname = 'naming_series' and `default` = 'INV'") diff --git a/erpnext/patches/patch_list.py b/erpnext/patches/patch_list.py index 7750962963..85a11a591d 100644 --- a/erpnext/patches/patch_list.py +++ b/erpnext/patches/patch_list.py @@ -177,5 +177,10 @@ patch_list = [ 'patch_file': 'reload_table', 'description': 'Relaod all item table: fld order changes' }, + { + 'patch_module': 'patches.jan_mar_2012', + 'patch_file': 'remove_series_defval', + 'description': 'Remove rv series default value' + }, ]