[FIX] l10n_ch: simpler/proper argument type for addons.get_module_resource

bzr revid: odo@openerp.com-20121218162337-ou11i0ezddm1frf8
This commit is contained in:
Olivier Dony 2012-12-18 17:23:37 +01:00
parent d2f4e02c36
commit 45de1864b5
1 changed files with 1 additions and 3 deletions

View File

@ -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