From 2577e2ae275b7bfa687d60581741c39b8c067dae Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 8 Dec 2011 18:06:53 +0530 Subject: [PATCH] Patch for c-form --- erpnext/patches/c_form_patch.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 erpnext/patches/c_form_patch.py diff --git a/erpnext/patches/c_form_patch.py b/erpnext/patches/c_form_patch.py new file mode 100644 index 00000000000..41da19645b6 --- /dev/null +++ b/erpnext/patches/c_form_patch.py @@ -0,0 +1,11 @@ +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') + + 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'")