From 45de1864b56fe9202655b3d50caa37ee383ba516 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Tue, 18 Dec 2012 17:23:37 +0100 Subject: [PATCH] [FIX] l10n_ch: simpler/proper argument type for addons.get_module_resource bzr revid: odo@openerp.com-20121218162337-ou11i0ezddm1frf8 --- addons/l10n_ch/report/report_webkit_html.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/addons/l10n_ch/report/report_webkit_html.py b/addons/l10n_ch/report/report_webkit_html.py index 851d92b16ee..864feead60a 100644 --- a/addons/l10n_ch/report/report_webkit_html.py +++ b/addons/l10n_ch/report/report_webkit_html.py @@ -157,8 +157,6 @@ def mako_template(text): class BVRWebKitParser(webkit_report.WebKitParser): - bvr_file_path = ('l10n_ch','report','bvr.mako') - def create_single_pdf(self, cursor, uid, ids, data, report_xml, context=None): """generate the PDF""" context = context or {} @@ -199,7 +197,7 @@ class BVRWebKitParser(webkit_report.WebKitParser): company = user.company_id body_mako_tpl = mako_template(template) #BVR specific - bvr_path = addons.get_module_resource(self.bvr_file_path) + bvr_path = addons.get_module_resource('l10n_ch','report','bvr.mako') body_bvr_tpl = mako_template(file(bvr_path).read()) helper = report_helper.WebKitHelper(cursor, uid, report_xml.id, context) ##BVR Specific