From 7272080eeb9a1cc87abf9f3dc0f36bdc66d8bb00 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 13 Sep 2011 15:24:49 +0530 Subject: [PATCH] reload voucherwise tax details report and all mappers --- patches/patch.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/patches/patch.py b/patches/patch.py index f419204f6a4..cee21311e3c 100644 --- a/patches/patch.py +++ b/patches/patch.py @@ -1,7 +1,7 @@ # REMEMBER to update this # ======================== -last_patch = 362 +last_patch = 363 #------------------------------------------- @@ -321,3 +321,10 @@ def execute(patch_no): sql("update `tabModule Def Item` set doc_name = 'GL Entry' where display_name in ('Lease Agreement List', 'Lease Monthly Future Installment Inflows', 'Lease Overdue Age Wise', 'Lease Overdue List', 'Lease Receipts Client Wise', 'Lease Receipt Summary Month Wise', 'Lease Yearly Future Installment Inflows') and parent = 'Accounts'") elif patch_no == 362: sql("update `tabDocField` set no_copy = 1 where fieldname in ('amended_from', 'amendment_date', 'file_list', 'naming_series', 'status')") + elif patch_no == 363: + reload_doc('accounts', 'search_criteria', 'voucher_wise_tax_details') + reload_doc('accounts', 'Module Def', 'Accounts') + mappers = sql("select name, module from `tabDocType Mapper`") + for d in mappers: + if d[0] and d[1]: + reload_doc(d[1].lower(), 'DocType Mapper', d[0])