c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #25374
[Bug 783884] Re: report_webkit incompatibility
** Changed in: openobject-addons
Assignee: (unassigned) => Nicolas Bessi - Camptocamp (nbessi-c2c)
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/783884
Title:
report_webkit incompatibility
Status in OpenERP Modules (addons):
New
Bug description:
in a wizard I have this code
data = self.read(cr, uid, ids, [], context=context)[0]
datas = {
'ids': [],
'model': 'account.account',
'form': data
}
#'report_name': 'account_account.tree_sum', <<<<<< webkit
#'report_name': 'account.account.chart.report', <<<<<< rml
return {
'type': 'ir.actions.report.xml',
'report_name': 'account_account.tree_sum',
'datas': datas,
}
the webkit report (which runs perfectly from print button) produces this error when started from a wizard.
the rml report causes no problems.
Exception: 'NoneType' object is unsubscriptable
Traceback (most recent call last):
File "/home/terp/OpenERP/trunk/openobject-server/6.0/bin/service/web_services.py", line 724, in go
(result, format) = obj.create(cr, uid, ids, datas, context)
File "/home/terp/OpenERP/trunk/openobject-server/6.0/bin/addons/pxgo_openoffice_reports/openoffice_report.py", line 497, in create
fnct_ret = self.old_create(cr, uid, ids, data, context=context)
File "/home/terp/OpenERP/trunk/openobject-server/6.0/bin/report/report_sxw.py", line 428, in create
fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
File "/home/terp/OpenERP/trunk/openobject-server/6.0/bin/report/report_sxw.py", line 491, in create_source_pdf
return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
File "/home/terp/OpenERP/trunk/openobject-server/6.0/bin/report/report_sxw.py", line 513, in create_single_pdf
pdf = create_doc(etree.tostring(processed_rml),rml_parser.localcontext,logo,title.encode('utf8'))
File "/home/terp/OpenERP/trunk/openobject-server/6.0/bin/report/interface.py", line 193, in create_pdf
obj.render()
File "/home/terp/OpenERP/trunk/openobject-server/6.0/bin/report/render/render.py", line 63, in render
result = self._render()
File "/home/terp/OpenERP/trunk/openobject-server/6.0/bin/report/render/rml.py", line 41, in _render
return rml2pdf.parseNode(self.rml, self.localcontext, images=self.bin_datas, path=self.path,title=self.title)
File "/home/terp/OpenERP/trunk/openobject-server/6.0/bin/report/render/rml2pdf/trml2pdf.py", line 971, in parseNode
r.render(fp)
File "/home/terp/OpenERP/trunk/openobject-server/6.0/bin/report/render/rml2pdf/trml2pdf.py", line 306, in render
pd = self.etree.find('pageDrawing')[0]
TypeError: 'NoneType' object is unsubscriptable
[2011-05-17 10:45:24,960][chricar6] ERROR:web-services:[23]: TypeError: 'NoneType' object is unsubscriptable
[2011-05-17 10:45:25,931][chricar6] DEBUG:web-services:netrpc: rpc-dispatching exception
Traceback (most recent call last):
File "/home/terp/OpenERP/trunk/openobject-server/6.0/bin/service/netrpc_server.py", line 70, in run
result = self.dispatch(msg[0], msg[1], msg[2:])
File "/home/terp/OpenERP/trunk/openobject-server/6.0/bin/netsvc.py", line 499, in dispatch
raise OpenERPDispatcherException(e, tb_s)
OpenERPDispatcherException
References