← Back to team overview

openerp-india team mailing list archive

[Bug 942679] Re: [report_webkit]Cannot print BVR invoices (Swiss version)

 

I noticed from the server log directly I get,

2012-03-11 00:47:38,036 25637 ERROR ? openerp.service.web_services: Exception: name 'o' is not defined
Traceback (most recent call last):
  File "/usr/local/openerp/openerp-server/openerp/service/web_services.py", line 710, in go
    (result, format) = obj.create(cr, uid, ids, datas, context)
  File "/usr/local/openerp/openerp-server/openerp/report/report_sxw.py", line 442, in create
    fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
  File "/usr/local/openerp/openerp-server/openerp/report/report_sxw.py", line 511, in create_source_pdf
    return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
  File "/usr/local/openerp/openerp-server/openerp/report/report_sxw.py", line 533, in create_single_pdf
    pdf = create_doc(etree.tostring(processed_rml),rml_parser.localcontext,logo,title.encode('utf8'))
  File "/usr/local/openerp/openerp-server/openerp/report/interface.py", line 192, in create_pdf
    obj.render()
  File "/usr/local/openerp/openerp-server/openerp/report/render/render.py", line 59, in render
    self._result = self._render()
  File "/usr/local/openerp/openerp-server/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 "/usr/local/openerp/openerp-server/openerp/report/render/rml2pdf/trml2pdf.py", line 985, in parseNode
    r.render(fp)
  File "/usr/local/openerp/openerp-server/openerp/report/render/rml2pdf/trml2pdf.py", line 310, in render
    pt_obj.render(el)
  File "/usr/local/openerp/openerp-server/openerp/report/render/rml2pdf/trml2pdf.py", line 957, in render
    for node_story in node_stories:
  File "/usr/local/openerp/openerp-server/openerp/report/render/rml2pdf/utils.py", line 64, in _child_get
    for ctx in eval(n.get('rml_loop'),{}, self.localcontext):
  File "/usr/local/openerp/openerp-server/openerp/tools/safe_eval.py", line 241, in safe_eval
    return eval(test_expr(expr,_SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
  File "", line 1, in <module>
NameError: name 'o' is not defined


But as I stated this does not make any sense whatsoever because they exact same code works in other systems,

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

Title:
  [report_webkit]Cannot print BVR invoices (Swiss version)

Status in OpenERP Addons (modules):
  Confirmed

Bug description:
  Using lates OpenERP 6.1 on Ubuntu 11, 64 bits.

  I have an invoice; and i'm trying to "Print BVR invoice" I get :

  Client Traceback (most recent call last):
    File "/usr/lib/pymodules/python2.7/openerp/addons/web/common/http.py", line 260, in dispatch
      r = method(controller, self, **self.params)
    File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 1784, in index
      req.session._db, req.session._uid, req.session._password, report_id)
    File "/usr/lib/pymodules/python2.7/openerp/addons/web/common/openerplib/main.py", line 117, in proxy
      result = self.connector.send(self.service_name, method, *args)
    File "/usr/lib/pymodules/python2.7/openerp/addons/web/common/http.py", line 596, in send
      fault = xmlrpclib.Fault('warning -- ' + e.name + '\n\n' + e.value, '')
  TypeError: coercing to Unicode: need string or buffer, tuple found

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


References