c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #12580
[Bug 702751] Re: assert kind in kind_list
Hello Phong,
You will need to give more information about the RML report you are
trying to print, the way you start it (parameters, etc..), because the
only thing that appears from your error trace is the fact that there is
an <lineStyle> element in your report that has an invalid "kind"
attribute, e.g empty or not amongst the authorized values: [ 'GRID',
'BOX', 'OUTLINE', 'INNERGRID', 'LINEBELOW', 'LINEABOVE','LINEBEFORE',
'LINEAFTER' ]
This validation has not changed recently, and a quick scan of addons and
extra-addons only reveals lineStyle elements with valid values.
** Changed in: openobject-server
Status: New => Incomplete
--
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/702751
Title:
assert kind in kind_list
Status in OpenObject Server:
Incomplete
Bug description:
I got this error when generating a RML report. It was working fine 2-3
days ago.
addons/ : rpa@xxxxxxxxxxx-20110111054618-wcj1qntx5hotn47q 4216
addons-community/ : alexis@xxxxxxxxxx-20110103185443-57tsbbqwjz2jkopk 295
addons-extra/ : launchpad_translations_on_behalf_of_openerp-commiter-20110111052427-m49o3mhiom1xz7zt 5154
server/ : launchpad_translations_on_behalf_of_openerp-20110111045526-u2iiiunl572fy6gr 3244
web/ : launchpad_translations_on_behalf_of_openerp-20110111045643-3xp3ia87xkrhl7in 4291
[2011-01-14 13:12:44,240][demo60] ERROR:web-services:[01]: Exception:
[2011-01-14 13:12:44,240][demo60] ERROR:web-services:[02]: Traceback (most recen
t call last):
[2011-01-14 13:12:44,241][demo60] ERROR:web-services:[03]: File "/var/local/so
ftware/openerp-v6.0dev/server/bin/service/web_services.py", line 724, in go
[2011-01-14 13:12:44,241][demo60] ERROR:web-services:[04]: (result, format)
= obj.create(cr, uid, ids, datas, context)
[2011-01-14 13:12:44,241][demo60] ERROR:web-services:[05]: File "/var/local/so
ftware/openerp-v6.0dev/server/bin/report/report_sxw.py", line 431, in create
[2011-01-14 13:12:44,241][demo60] ERROR:web-services:[06]: fnct_ret = fnct(c
r, uid, ids, data, report_xml, context)
[2011-01-14 13:12:44,241][demo60] ERROR:web-services:[07]: File "/var/local/so
ftware/openerp-v6.0dev/server/bin/report/report_sxw.py", line 494, in create_sou
rce_pdf
[2011-01-14 13:12:44,241][demo60] ERROR:web-services:[08]: return self.creat
e_single_pdf(cr, uid, ids, data, report_xml, context)
[2011-01-14 13:12:44,241][demo60] ERROR:web-services:[09]: File "/var/local/so
ftware/openerp-v6.0dev/server/bin/report/report_sxw.py", line 516, in create_sin
gle_pdf
[2011-01-14 13:12:44,242][demo60] ERROR:web-services:[10]: pdf = create_doc(
etree.tostring(processed_rml),rml_parser.localcontext,logo,title.encode('utf8'))
[2011-01-14 13:12:44,242][demo60] ERROR:web-services:[11]: File "/var/local/so
ftware/openerp-v6.0dev/server/bin/report/interface.py", line 197, in create_pdf
[2011-01-14 13:12:44,242][demo60] ERROR:web-services:[12]: obj.render()
[2011-01-14 13:12:44,242][demo60] ERROR:web-services:[13]: File "/var/local/so
ftware/openerp-v6.0dev/server/bin/report/render/render.py", line 63, in render
[2011-01-14 13:12:44,242][demo60] ERROR:web-services:[14]: result = self._re
nder()
[2011-01-14 13:12:44,242][demo60] ERROR:web-services:[15]: File "/var/local/so
ftware/openerp-v6.0dev/server/bin/report/render/rml.py", line 41, in _render
[2011-01-14 13:12:44,242][demo60] ERROR:web-services:[16]: return rml2pdf.pa
rseNode(self.rml, self.localcontext, images=self.bin_datas, path=self.path,title
=self.title)
[2011-01-14 13:12:44,243][demo60] ERROR:web-services:[17]: File "/var/local/so
ftware/openerp-v6.0dev/server/bin/addons/base_report_unicode/__init__.py", line
80, in convert2TrueType
[2011-01-14 13:12:44,243][demo60] ERROR:web-services:[18]: return method(dat
a, args[1:] if len(args) > 2 else args[1], **argv)
[2011-01-14 13:12:44,243][demo60] ERROR:web-services:[19]: File "/var/local/so
ftware/openerp-v6.0dev/server/bin/report/render/rml2pdf/trml2pdf.py", line 971,
in parseNode
[2011-01-14 13:12:44,243][demo60] ERROR:web-services:[20]: r.render(fp)
[2011-01-14 13:12:44,243][demo60] ERROR:web-services:[21]: File "/var/local/so
ftware/openerp-v6.0dev/server/bin/report/render/rml2pdf/trml2pdf.py", line 293,
in render
[2011-01-14 13:12:44,243][demo60] ERROR:web-services:[22]: self.styles = _rm
l_styles(el,self.localcontext)
[2011-01-14 13:12:44,243][demo60] ERROR:web-services:[23]: File "/var/local/so
ftware/openerp-v6.0dev/server/bin/report/render/rml2pdf/trml2pdf.py", line 139,
in __init__
[2011-01-14 13:12:44,243][demo60] ERROR:web-services:[24]: self.table_styles
[style.get('id')] = self._table_style_get(style)
[2011-01-14 13:12:44,243][demo60] ERROR:web-services:[25]: File "/var/local/so
ftware/openerp-v6.0dev/server/bin/report/render/rml2pdf/trml2pdf.py", line 204,
in _table_style_get
[2011-01-14 13:12:44,243][demo60] ERROR:web-services:[26]: assert kind in kind_list
[2011-01-14 13:12:44,243][demo60] ERROR:web-services:[27]: AssertionError
[2011-01-14 13:12:44,380][demo60] DEBUG:web-services:netrpc: rpc-dispatching exc
eption
Traceback (most recent call last):
File "/var/local/software/openerp-v6.0dev/server/bin/service/netrpc_server.py"
, line 70, in run
result = self.dispatch(msg[0], msg[1], msg[2:])
File "/var/local/software/openerp-v6.0dev/server/bin/netsvc.py", line 499, in
dispatch
raise OpenERPDispatcherException(e, tb_s)
OpenERPDispatcherException
References