Am Mittwoch, 14. Juni 2017 09:15:06 UTC+2 schrieb rawdesignhamburg:
>
> 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
>
Thanks for your help. The problem was the report cche. I had to go to
Administration > user interface - actions - reports - sale and clear the
content. I think I have to do the same with Invoice and Purchase. Maybe
even some more.
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/21134d51-e28c-44b7-a9b8-d6a3cc8a8dbc%40googlegroups.com.