[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Health-dev] print prescription error

From: Edgar Hagenbichler
Subject: [Health-dev] print prescription error
Date: Sat, 15 Aug 2020 18:28:32 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0

Dear all,

when I tried to print a prescription  (the same with making an email report) at the federation demo-database (see link to screenshot at the end of the email) I got this error:

Traceback (most recent call last):
  File "/trytond/", line 73, in dispatch_request
    return endpoint(request, **request.view_args)
  File "/trytond/protocols/", line 46, in rpc
    request, database_name, *request.rpc_params)
  File "/wrapt/", line 564, in __call__
    args, kwargs)
  File "/trytond/", line 44, in auth_required
    return wrapped(*args, **kwargs)
  File "/trytond/protocols/", line 122, in wrapper
    return func(request, pool, *args, **kwargs)
  File "/trytond/protocols/", line 176, in _dispatch
    result = rpc.result(meth(*c_args, **c_kwargs))
  File "/trytond/report/", line 183, in execute
    oext, content = cls._execute(records, data, action_report)
  File "/trytond/report/", line 191, in _execute
    return cls.convert(action, cls.render(action, report_context))
  File "/trytond/report/", line 289, in render
    data = rel_report(**report_context).render()
  File "/relatorio/templates/", line 35, in render, method=method, encoding=encoding, out=out)
  File "/relatorio/templates/", line 1161, in __call__
    self.xml_serializer(writer(stream)), encoding=encoding, out=writer)
  File "/genshi/", line 58, in encode
    for chunk in iterator:
  File "/genshi/", line 241, in __call__
    for kind, data, pos in stream:
  File "/genshi/", line 671, in __call__
    for kind, data, pos in stream:
  File "/genshi/", line 776, in __call__
    for kind, data, pos in chain(stream, [(None, None, None)]):
  File "/genshi/", line 596, in __call__
    for ev in stream:
  File "/relatorio/templates/", line 1053, in __call__
    for kind, data, pos in stream:
  File "/genshi/", line 292, in _ensure
    for event in stream:
  File "/genshi/filters/", line 691, in __call__
    for kind, data, pos in stream:
  File "/genshi/template/", line 638, in _include
    for event in stream:
  File "/genshi/template/", line 327, in _match
    for event in stream:
  File "/genshi/template/", line 598, in _flatten
    result = _eval_expr(data, ctxt, vars)
  File "/genshi/template/", line 289, in _eval_expr
    retval = expr.evaluate(ctxt)
  File "/genshi/template/", line 178, in evaluate
    return eval(self.code, _globals, {'__data__': data})
  File "<string>", line 1, in <Expression '__relatorio_escape_invalid_chars(format_date(prescription.report_prescription_date, user.language))'>
  File "/trytond/report/", line 339, in format_date
    lang = Lang.get()
  File "/trytond/ir/", line 313, in get
    ('code', '=', code),
ValueError: not enough values to unpack (expected 1, got 0)

Has anyone an idea what I am doing wrong? Or is it a bug?

Thank you very much,

all the best


Link to screenshot:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]