Hello

I have this problem on Tryton 3.6 when I try to open a invoice page with 
"open Record".


Traceback (most recent call last):
  File "/trytond/protocols/jsonrpc.py", line 162, in _marshaled_dispatch
    response['result'] = dispatch_method(method, params)
  File "/trytond/protocols/jsonrpc.py", line 191, in _dispatch
    res = dispatch(*args)
  File "/trytond/protocols/dispatcher.py", line 158, in dispatch
    result = rpc.result(meth(*c_args, **c_kwargs))
  File "/trytond/modules/sale/invoice.py", line 22, in wrapper
    func(cls, invoices)
  File "/trytond/modules/sale/invoice.py", line 95, in post
    super(Invoice, cls).post(invoices)
  File "/trytond/modules/purchase/invoice.py", line 22, in wrapper
    func(cls, invoices)
  File "/trytond/modules/purchase/invoice.py", line 101, in post
    super(Invoice, cls).post(invoices)
  File "/trytond/model/modelview.py", line 624, in wrapper
    return func(cls, *args, **kwargs)
  File "/trytond/model/workflow.py", line 33, in wrapper
    result = func(cls, filtered, *args, **kwargs)
  File "/trytond/modules/account_invoice/invoice.py", line 1283, in post
    invoice.print_invoice()
  File "/trytond/modules/account_invoice/invoice.py", line 1196, in 
print_invoice
    InvoiceReport.execute([self.id], {})
  File "/trytond/modules/account_invoice/invoice.py", line 2303, in execute
    result = super(InvoiceReport, cls).execute(ids, data)
  File "/trytond/report/report.py", line 149, in execute
    cls.render(action_report, report_context))
  File "/trytond/report/report.py", line 301, in render
    data = rel_report(**report_context).render()
  File "/relatorio/templates/base.py", line 34, in render
    return self.serializer(self.events)
  File "/relatorio/templates/opendocument.py", line 894, in __call__
    for kind, data, pos in stream:
  File "/genshi/core.py", line 289, in _ensure
    for event in stream:
  File "/genshi/filters/i18n.py", line 690, in __call__
    for kind, data, pos in stream:
  File "/genshi/template/base.py", line 618, in _include
    for event in stream:
  File "/genshi/template/markup.py", line 326, in _match
    for event in stream:
  File "/genshi/template/base.py", line 578, in _flatten
    result = _eval_expr(data, ctxt, vars)
  File "/genshi/template/base.py", line 289, in _eval_expr
    retval = expr.evaluate(ctxt)
  File "/genshi/template/eval.py", line 177, in evaluate
    return eval(self.code, _globals, {'__data__': data})
  File "<string>", line 1, in <Expression u"setLang(invoice.party.lang and 
invoice.party.lang.code or 'en_US')">
  File "/genshi/template/eval.py", line 310, in lookup_name
    val = cls.undefined(name)
  File "/genshi/template/eval.py", line 413, in undefined
    raise UndefinedError(key, owner=owner)
UndefinedError: "setLang" not defined

It is the same problem like this I think: 
https://groups.google.com/forum/#!topic/tryton-ar/LQ3ODZyBvtY

regards

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/d2f853d2-a915-4135-a093-29c12365b1a2%40googlegroups.com.

Reply via email to