From db126e80b8aa5a58abf4d6810c6d8285acf92b97 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 3 Jan 2012 11:10:11 +0530 Subject: [PATCH] pos setting patch --- erpnext/patches/pos_setting_patch.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 erpnext/patches/pos_setting_patch.py diff --git a/erpnext/patches/pos_setting_patch.py b/erpnext/patches/pos_setting_patch.py new file mode 100644 index 0000000000..c202ab73b7 --- /dev/null +++ b/erpnext/patches/pos_setting_patch.py @@ -0,0 +1,6 @@ +def execute(): + import webnotes + webnotes.conn.sql("update `tabDocField` set `default` = 1 where fieldname = 'conversion_rate' and parent = 'POS Setting'") + + from webnotes.model import delete_doc + delete_doc('DocType', 'POS Settings')