brotherton-erpnext/erpnext/patches/c_form_patch.py
2011-12-08 18:07:20 +05:30

13 lines
525 B
Python

def execute():
import webnotes
from webnotes.modules.module_manager import reload_doc
reload_doc('accounts', 'doctype', 'receivable_voucher')
reload_doc('accounts', 'doctype', 'c_form')
reload_doc('accounts', 'doctype', 'c_form_invoice_details')
reload_doc('accounts', 'Module Def', 'Accounts')
sql = webnotes.conn.sql
sql("update `tabReceivable Voucher` set c_form_applicable = 'Yes' where c_form_applicable = 'Y'")
sql("update `tabReceivable Voucher` set c_form_applicable = 'No' where c_form_applicable = 'N'")