brotherton-erpnext/erpnext/patches/price_list_patch.py

14 lines
538 B
Python
Raw Normal View History

2011-12-20 13:39:23 +00:00
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']:
2011-12-21 05:52:32 +00:00
webnotes.conn.sql("update `tab%s` set price_list_currency = currency, plc_conversion_rate = conversion_rate" % d)