From 63b94c42e4594fc194b4d39f326d75743c03ceed Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 20 Dec 2011 19:09:23 +0530 Subject: [PATCH] Price list patch --- erpnext/patches/price_list_patch.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 erpnext/patches/price_list_patch.py diff --git a/erpnext/patches/price_list_patch.py b/erpnext/patches/price_list_patch.py new file mode 100644 index 0000000000..2651425e94 --- /dev/null +++ b/erpnext/patches/price_list_patch.py @@ -0,0 +1,13 @@ +def execute(): + import webnotes + from webnotes.modules.module_manager import reload_doc + + reload_doc('accounts', 'doctype', 'receivable_voucher') + reload_doc('stock', 'doctype', 'delivery_note') + reload_doc('selling', 'doctype', 'sales_order') + reload_doc('selling', 'doctype', 'quotation') + reload_doc('setup', 'doctype', 'manage_account') + + + for d in ['Receivable Voucher', 'Delivery Note', 'Sales Order', 'Quotation']: + sql("update `tab%s` set price_list_currency = currency, plc_conversion_rate = conversion_rate" % d)