From 547478f973634b1ef34b1388d082aeaa5aff0ebe Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 20 Mar 2012 14:26:14 +0530 Subject: [PATCH] stock entry: new purpose others added in stock entry --- erpnext/patches/jan_mar_2012/stock_entry_others_patch.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 erpnext/patches/jan_mar_2012/stock_entry_others_patch.py diff --git a/erpnext/patches/jan_mar_2012/stock_entry_others_patch.py b/erpnext/patches/jan_mar_2012/stock_entry_others_patch.py new file mode 100644 index 0000000000..3a9441964c --- /dev/null +++ b/erpnext/patches/jan_mar_2012/stock_entry_others_patch.py @@ -0,0 +1,6 @@ +def execute(): + import webnotes + from webnotes.modules.module_manager import reload_doc + reload_doc('stock', 'doctype', 'stock_entry') + + webnotes.conn.sql("update `tabDocField` set options = concat(options, '\nOthers') where fieldname = 'purpose' and parent = 'Stock Entry'")