[FIX] webkit: Set the right signature for the get_lib function

bzr revid: stw@openerp.com-20120215095527-a3b4ps6lyk735v1h
This commit is contained in:
Stephane Wirtel 2012-02-15 10:55:27 +01:00
parent 3295f36a11
commit 5d4ff77bd3
1 changed files with 2 additions and 2 deletions

View 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')