commit | 616548f95c266cfa172916a9496e7066a70796d6 | [log] [tgz] |
---|---|---|
author | Nabin Hait <nabinhait@gmail.com> | Tue Jan 03 11:10:25 2012 +0530 |
committer | Nabin Hait <nabinhait@gmail.com> | Tue Jan 03 11:10:25 2012 +0530 |
tree | e191df389eff0f7fcc8bb8576504e7c5ea1be31b | |
parent | db126e80b8aa5a58abf4d6810c6d8285acf92b97 [diff] | |
parent | 1e4b8be8dc8f4e43c8e06843c3e725257474e390 [diff] |
Merge branch 'master' of github.com:webnotes/erpnext
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')