commit | db126e80b8aa5a58abf4d6810c6d8285acf92b97 | [log] [tgz] |
---|---|---|
author | Nabin Hait <nabinhait@gmail.com> | Tue Jan 03 11:10:11 2012 +0530 |
committer | Nabin Hait <nabinhait@gmail.com> | Tue Jan 03 11:10:11 2012 +0530 |
tree | 9282cc57bf9e5c69167b6a0e8d72bec33273a1f0 | |
parent | c184dc56a467cbe287edb9c1377ec2005abf53ee [diff] [blame] |
pos setting patch
diff --git a/erpnext/patches/pos_setting_patch.py b/erpnext/patches/pos_setting_patch.py new file mode 100644 index 0000000..c202ab7 --- /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')