Skip to content

Instantly share code, notes, and snippets.

@moylop260
Created August 19, 2014 20:49
Show Gist options
  • Save moylop260/21f158bd24a59ade583b to your computer and use it in GitHub Desktop.
Save moylop260/21f158bd24a59ade583b to your computer and use it in GitHub Desktop.
2014-08-19 20:30:07,569 21493 INFO 15219-4-7-0-op-all openerp.modules.loading: module l10n_in_hr_payroll: loading test/payment_advice.yml
2014-08-19 20:30:07,593 21493 TEST 15219-4-7-0-op-all openerp.tools.yaml_import: In order to test Payment Advice I create a new Payment Advice
2014-08-19 20:30:07,593 21493 TEST 15219-4-7-0-op-all openerp.tools.yaml_import: I create a new Payment Advice with NEFT Transaction Enable
2014-08-19 20:30:07,682 21493 TEST 15219-4-7-0-op-all openerp.tools.yaml_import: I check that the Payment Advice is in "Draft"
2014-08-19 20:30:07,684 21493 TEST 15219-4-7-0-op-all openerp.tools.yaml_import: Now I confirm Payment Advice
2014-08-19 20:30:07,701 21493 TEST 15219-4-7-0-op-all openerp.tools.yaml_import: I check that the Payment Advice state is "Confirmed"
2014-08-19 20:30:07,703 21493 TEST 15219-4-7-0-op-all openerp.tools.yaml_import: In order to test the PDF report defined on a Payment Advice, we will print a Print Advice Report when NEFT is checked
2014-08-19 20:30:07,828 21493 ERROR 15219-4-7-0-op-all openerp.tools.yaml_import: list index out of rangeparagraph text u'<para><seq id="L1">.</seq>.</bullet> <font color="white"> </font></para>' caused exception
Traceback (most recent call last):
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/tools/yaml_import.py", line 867, in process
self._process_node(node)
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/tools/yaml_import.py", line 880, in _process_node
self.process_python(node)
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/tools/yaml_import.py", line 553, in process_python
unsafe_eval(code_obj, {'ref': self.get_id}, code_context)
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/addons/l10n_in_hr_payroll/test/payment_advice.yml", line 2, in <module>
In order to test Payment Advice I create a new Payment Advice
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/report/report_sxw.py", line 446, in create
fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/report/report_sxw.py", line 515, in create_source_pdf
return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/report/report_sxw.py", line 537, in create_single_pdf
pdf = create_doc(etree.tostring(processed_rml),rml_parser.localcontext,logo,title.encode('utf8'))
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/report/interface.py", line 206, in create_pdf
obj.render()
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/report/render/render.py", line 59, in render
self._result = self._render()
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/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/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/report/render/rml2pdf/trml2pdf.py", line 1036, in parseNode
r.render(fp)
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/report/render/rml2pdf/trml2pdf.py", line 328, in render
pt_obj.render(el)
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/report/render/rml2pdf/trml2pdf.py", line 1009, in render
fis += r.render(node_story)
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/report/render/rml2pdf/trml2pdf.py", line 901, in render
return process_story(node_story)
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/report/render/rml2pdf/trml2pdf.py", line 894, in process_story
flow = self._flowable(node)
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/report/render/rml2pdf/trml2pdf.py", line 858, in _flowable
return self.render(node)
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/report/render/rml2pdf/trml2pdf.py", line 901, in render
return process_story(node_story)
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/report/render/rml2pdf/trml2pdf.py", line 894, in process_story
flow = self._flowable(node)
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/report/render/rml2pdf/trml2pdf.py", line 817, in _flowable
return self._table(node)
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/report/render/rml2pdf/trml2pdf.py", line 701, in _table
fl = self._flowable(n, extra_style=paraStyle)
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/report/render/rml2pdf/trml2pdf.py", line 770, in _flowable
result.append(platypus.Paragraph(i, style, **(utils.attr_get(node, [], {'bulletText':'str'}))))
File "/usr/lib/python2.7/dist-packages/reportlab/platypus/paragraph.py", line 988, in __init__
self._setup(text, style, bulletText or getattr(style,'bulletText',None), frags, cleanBlockQuotedText)
File "/usr/lib/python2.7/dist-packages/reportlab/platypus/paragraph.py", line 1010, in _setup
style, frags, bulletTextFrags = _parser.parse(text,style)
File "/usr/lib/python2.7/dist-packages/reportlab/platypus/paraparser.py", line 1147, in parse
annotateException('paragraph text %s caused exception' % ascii(text))
File "/usr/lib/python2.7/dist-packages/reportlab/lib/utils.py", line 1337, in annotateException
rl_reraise(t,v,b)
File "/usr/lib/python2.7/dist-packages/reportlab/platypus/paraparser.py", line 1145, in parse
self.feed(text)
File "/usr/lib/python2.7/HTMLParser.py", line 117, in feed
self.goahead(0)
File "/usr/lib/python2.7/HTMLParser.py", line 155, in goahead
if i < j: self.handle_data(rawdata[i:j])
File "/usr/lib/python2.7/dist-packages/reportlab/platypus/paraparser.py", line 1038, in handle_data
frag = copy.copy(self._stack[-1])
IndexError: list index out of rangeparagraph text u'<para><seq id="L1">.</seq>.</bullet> <font color="white"> </font></para>' caused exception
2014-08-19 20:30:07,838 21493 ERROR 15219-4-7-0-op-all openerp.modules.loading: module l10n_in_hr_payroll: an exception occurred in a test
Traceback (most recent call last):
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/modules/loading.py", line 83, in load_test
_load_data(cr, module_name, idref, mode, 'test')
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/modules/loading.py", line 122, in _load_data
tools.convert_yaml_import(cr, module_name, fp, kind, idref, mode, noupdate, report)
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/tools/yaml_import.py", line 931, in yaml_import
yaml_interpreter.process(yaml_string)
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/tools/yaml_import.py", line 867, in process
self._process_node(node)
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/tools/yaml_import.py", line 880, in _process_node
self.process_python(node)
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/tools/yaml_import.py", line 553, in process_python
unsafe_eval(code_obj, {'ref': self.get_id}, code_context)
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/addons/l10n_in_hr_payroll/test/payment_advice.yml", line 2, in <module>
In order to test Payment Advice I create a new Payment Advice
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/report/report_sxw.py", line 446, in create
fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/report/report_sxw.py", line 515, in create_source_pdf
return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/report/report_sxw.py", line 537, in create_single_pdf
pdf = create_doc(etree.tostring(processed_rml),rml_parser.localcontext,logo,title.encode('utf8'))
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/report/interface.py", line 206, in create_pdf
obj.render()
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/report/render/render.py", line 59, in render
self._result = self._render()
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/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/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/report/render/rml2pdf/trml2pdf.py", line 1036, in parseNode
r.render(fp)
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/report/render/rml2pdf/trml2pdf.py", line 328, in render
pt_obj.render(el)
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/report/render/rml2pdf/trml2pdf.py", line 1009, in render
fis += r.render(node_story)
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/report/render/rml2pdf/trml2pdf.py", line 901, in render
return process_story(node_story)
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/report/render/rml2pdf/trml2pdf.py", line 894, in process_story
flow = self._flowable(node)
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/report/render/rml2pdf/trml2pdf.py", line 858, in _flowable
return self.render(node)
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/report/render/rml2pdf/trml2pdf.py", line 901, in render
return process_story(node_story)
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/report/render/rml2pdf/trml2pdf.py", line 894, in process_story
flow = self._flowable(node)
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/report/render/rml2pdf/trml2pdf.py", line 817, in _flowable
return self._table(node)
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/report/render/rml2pdf/trml2pdf.py", line 701, in _table
fl = self._flowable(n, extra_style=paraStyle)
File "/home/runbot/instance/extra_addons/odoo-extra/runbot/static/build/15219-4-7-0-op/openerp/report/render/rml2pdf/trml2pdf.py", line 770, in _flowable
result.append(platypus.Paragraph(i, style, **(utils.attr_get(node, [], {'bulletText':'str'}))))
File "/usr/lib/python2.7/dist-packages/reportlab/platypus/paragraph.py", line 988, in __init__
self._setup(text, style, bulletText or getattr(style,'bulletText',None), frags, cleanBlockQuotedText)
File "/usr/lib/python2.7/dist-packages/reportlab/platypus/paragraph.py", line 1010, in _setup
style, frags, bulletTextFrags = _parser.parse(text,style)
File "/usr/lib/python2.7/dist-packages/reportlab/platypus/paraparser.py", line 1147, in parse
annotateException('paragraph text %s caused exception' % ascii(text))
File "/usr/lib/python2.7/dist-packages/reportlab/lib/utils.py", line 1337, in annotateException
rl_reraise(t,v,b)
File "/usr/lib/python2.7/dist-packages/reportlab/platypus/paraparser.py", line 1145, in parse
self.feed(text)
File "/usr/lib/python2.7/HTMLParser.py", line 117, in feed
self.goahead(0)
File "/usr/lib/python2.7/HTMLParser.py", line 155, in goahead
if i < j: self.handle_data(rawdata[i:j])
File "/usr/lib/python2.7/dist-packages/reportlab/platypus/paraparser.py", line 1038, in handle_data
frag = copy.copy(self._stack[-1])
IndexError: list index out of rangeparagraph text u'<para><seq id="L1">.</seq>.</bullet> <font color="white"> </font></para>' caused exception
2014-08-19 20:30:07,876 21493 INFO 15219-4-7-0-op-all openerp.modules.module: module l10n_it: creating or updating database tables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment