← Back to team overview

credativ team mailing list archive

[Bug 924994] [NEW] account_invoice_payment_term crashes on printing new invoice

 

Public bug reported:

Hi... Installing account_invoice_payment_term module, makes invoice
printing crashes.

Environment Information :
System : Linux xaloc 3.0.0-16-generic-pae #28-Ubuntu SMP Fri Jan 27 19:24:01 UTC 2012 i686 i686 i386 GNU/Linux
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 11.10
Release: 11.10
Codename: oneiric
Operating System Release :3.0.0-16-generic-pae
Operating System Architecture : 32bit
Operating System Locale : ca_ES.UTF8
Python Version : 2.7.2
OpenERP-Client Version : 6.0.3

WARNING:browse_record:[01]: Field 'code' does not exist in object 'browse_record(res.currency, 1)': 
WARNING:browse_record:[02]: None
ERROR:web-services:[01]: Exception: 
ERROR:web-services:[02]: Traceback (most recent call last):
ERROR:web-services:[03]:   File "/usr/local/lib/python2.7/dist-packages/openerp-server/service/web_services.py", line 724, in go
ERROR:web-services:[04]:     (result, format) = obj.create(cr, uid, ids, datas, context)
ERROR:web-services:[05]:   File "/usr/local/lib/python2.7/dist-packages/openerp-server/report/report_sxw.py", line 418, in create
ERROR:web-services:[06]:     fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
ERROR:web-services:[07]:   File "/usr/local/lib/python2.7/dist-packages/openerp-server/report/report_sxw.py", line 452, in create_source_pdf
ERROR:web-services:[08]:     result = self.create_single_pdf(cr, uid, [obj.id], data, report_xml, context)
ERROR:web-services:[09]:   File "/usr/local/lib/python2.7/dist-packages/openerp-server/report/report_sxw.py", line 504, in create_single_pdf
ERROR:web-services:[10]:     pdf = create_doc(etree.tostring(processed_rml),rml_parser.localcontext,logo,title.encode('utf8'))
ERROR:web-services:[11]:   File "/usr/local/lib/python2.7/dist-packages/openerp-server/report/interface.py", line 193, in create_pdf
ERROR:web-services:[12]:     obj.render()
ERROR:web-services:[13]:   File "/usr/local/lib/python2.7/dist-packages/openerp-server/report/render/render.py", line 63, in render
ERROR:web-services:[14]:     result = self._render()
ERROR:web-services:[15]:   File "/usr/local/lib/python2.7/dist-packages/openerp-server/report/render/rml.py", line 41, in _render
ERROR:web-services:[16]:     return rml2pdf.parseNode(self.rml, self.localcontext, images=self.bin_datas, path=self.path,title=self.title)
ERROR:web-services:[17]:   File "/usr/local/lib/python2.7/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 971, in parseNode
ERROR:web-services:[18]:     r.render(fp)
ERROR:web-services:[19]:   File "/usr/local/lib/python2.7/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 303, in render
ERROR:web-services:[20]:     pt_obj.render(el)
ERROR:web-services:[21]:   File "/usr/local/lib/python2.7/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 942, in render
ERROR:web-services:[22]:     fis += r.render(node_story)
ERROR:web-services:[23]:   File "/usr/local/lib/python2.7/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 861, in render
ERROR:web-services:[24]:     return process_story(node_story)
ERROR:web-services:[25]:   File "/usr/local/lib/python2.7/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 854, in process_story
ERROR:web-services:[26]:     flow = self._flowable(node)
ERROR:web-services:[27]:   File "/usr/local/lib/python2.7/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 818, in _flowable
ERROR:web-services:[28]:     return self.render(node)
ERROR:web-services:[29]:   File "/usr/local/lib/python2.7/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 861, in render
ERROR:web-services:[30]:     return process_story(node_story)
ERROR:web-services:[31]:   File "/usr/local/lib/python2.7/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 854, in process_story
ERROR:web-services:[32]:     flow = self._flowable(node)
ERROR:web-services:[33]:   File "/usr/local/lib/python2.7/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 777, in _flowable
ERROR:web-services:[34]:     return  self._table(node)
ERROR:web-services:[35]:   File "/usr/local/lib/python2.7/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 681, in _table
ERROR:web-services:[36]:     assert length == len(node.get('colWidths').split(','))
ERROR:web-services:[37]: AssertionError

Similar bugs are: #510799 and #388347

thank you !

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of OpenERP
Framework Experts, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/924994

Title:
  account_invoice_payment_term crashes on printing new invoice

Status in OpenERP Addons (modules):
  New

Bug description:
  Hi... Installing account_invoice_payment_term module, makes invoice
  printing crashes.

  Environment Information :
  System : Linux xaloc 3.0.0-16-generic-pae #28-Ubuntu SMP Fri Jan 27 19:24:01 UTC 2012 i686 i686 i386 GNU/Linux
  OS Name : posix
  Distributor ID: Ubuntu
  Description: Ubuntu 11.10
  Release: 11.10
  Codename: oneiric
  Operating System Release :3.0.0-16-generic-pae
  Operating System Architecture : 32bit
  Operating System Locale : ca_ES.UTF8
  Python Version : 2.7.2
  OpenERP-Client Version : 6.0.3

  WARNING:browse_record:[01]: Field 'code' does not exist in object 'browse_record(res.currency, 1)': 
  WARNING:browse_record:[02]: None
  ERROR:web-services:[01]: Exception: 
  ERROR:web-services:[02]: Traceback (most recent call last):
  ERROR:web-services:[03]:   File "/usr/local/lib/python2.7/dist-packages/openerp-server/service/web_services.py", line 724, in go
  ERROR:web-services:[04]:     (result, format) = obj.create(cr, uid, ids, datas, context)
  ERROR:web-services:[05]:   File "/usr/local/lib/python2.7/dist-packages/openerp-server/report/report_sxw.py", line 418, in create
  ERROR:web-services:[06]:     fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
  ERROR:web-services:[07]:   File "/usr/local/lib/python2.7/dist-packages/openerp-server/report/report_sxw.py", line 452, in create_source_pdf
  ERROR:web-services:[08]:     result = self.create_single_pdf(cr, uid, [obj.id], data, report_xml, context)
  ERROR:web-services:[09]:   File "/usr/local/lib/python2.7/dist-packages/openerp-server/report/report_sxw.py", line 504, in create_single_pdf
  ERROR:web-services:[10]:     pdf = create_doc(etree.tostring(processed_rml),rml_parser.localcontext,logo,title.encode('utf8'))
  ERROR:web-services:[11]:   File "/usr/local/lib/python2.7/dist-packages/openerp-server/report/interface.py", line 193, in create_pdf
  ERROR:web-services:[12]:     obj.render()
  ERROR:web-services:[13]:   File "/usr/local/lib/python2.7/dist-packages/openerp-server/report/render/render.py", line 63, in render
  ERROR:web-services:[14]:     result = self._render()
  ERROR:web-services:[15]:   File "/usr/local/lib/python2.7/dist-packages/openerp-server/report/render/rml.py", line 41, in _render
  ERROR:web-services:[16]:     return rml2pdf.parseNode(self.rml, self.localcontext, images=self.bin_datas, path=self.path,title=self.title)
  ERROR:web-services:[17]:   File "/usr/local/lib/python2.7/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 971, in parseNode
  ERROR:web-services:[18]:     r.render(fp)
  ERROR:web-services:[19]:   File "/usr/local/lib/python2.7/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 303, in render
  ERROR:web-services:[20]:     pt_obj.render(el)
  ERROR:web-services:[21]:   File "/usr/local/lib/python2.7/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 942, in render
  ERROR:web-services:[22]:     fis += r.render(node_story)
  ERROR:web-services:[23]:   File "/usr/local/lib/python2.7/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 861, in render
  ERROR:web-services:[24]:     return process_story(node_story)
  ERROR:web-services:[25]:   File "/usr/local/lib/python2.7/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 854, in process_story
  ERROR:web-services:[26]:     flow = self._flowable(node)
  ERROR:web-services:[27]:   File "/usr/local/lib/python2.7/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 818, in _flowable
  ERROR:web-services:[28]:     return self.render(node)
  ERROR:web-services:[29]:   File "/usr/local/lib/python2.7/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 861, in render
  ERROR:web-services:[30]:     return process_story(node_story)
  ERROR:web-services:[31]:   File "/usr/local/lib/python2.7/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 854, in process_story
  ERROR:web-services:[32]:     flow = self._flowable(node)
  ERROR:web-services:[33]:   File "/usr/local/lib/python2.7/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 777, in _flowable
  ERROR:web-services:[34]:     return  self._table(node)
  ERROR:web-services:[35]:   File "/usr/local/lib/python2.7/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 681, in _table
  ERROR:web-services:[36]:     assert length == len(node.get('colWidths').split(','))
  ERROR:web-services:[37]: AssertionError

  Similar bugs are: #510799 and #388347

  thank you !

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/924994/+subscriptions


Follow ups

References