[FIX] webkit: Set the right signature for the get_lib function
authorStephane Wirtel <stw@openerp.com>
Wed, 15 Feb 2012 09:55:27 +0000 (10:55 +0100)
committerStephane Wirtel <stw@openerp.com>
Wed, 15 Feb 2012 09:55:27 +0000 (10:55 +0100)
bzr revid: stw@openerp.com-20120215095527-a3b4ps6lyk735v1h

addons/report_webkit/webkit_report.py

index 482f372..1237b7d 100644 (file)
@@ -71,7 +71,7 @@ class WebKitParser(report_sxw):
         report_sxw.__init__(self, name, table, rml, parser,
             header, store)
 
-    def get_lib(self, cursor, uid, company) :
+    def get_lib(self, cursor, uid):
         """Return the lib wkhtml path"""
         proxy = self.pool.get('ir.config_parameter')
         webkit_path = proxy.get_param(cursor, uid, 'webkit_path')
@@ -294,7 +294,7 @@ class WebKitParser(report_sxw):
                 logger.error(msg)
                 raise except_osv(_('Webkit render'), msg)
             return (deb, 'html')
-        bin = self.get_lib(cursor, uid, company.id)
+        bin = self.get_lib(cursor, uid)
         pdf = self.generate_pdf(bin, report_xml, head, foot, htmls)
         return (pdf, 'pdf')