health
[Top][All Lists]
Advanced

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

Re: [Health] Error: format_date() got an unexpected keyword argument 'da


From: Prakhar Bansal
Subject: Re: [Health] Error: format_date() got an unexpected keyword argument 'date'
Date: Mon, 29 Feb 2016 10:24:37 +0530
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0


On Monday 29 February 2016 04:38 AM, Maria Cecilia Santos Popper wrote:
Hi all!

I`m running GnuHealth 3 on a virtual machine with Ubuntu 14.04 lts and postgres 9,3.
I`m trying to generate a prescription report and I get this error message:

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 162, in dispatch
    result = rpc.result(meth(*c_args, **c_kwargs))
  File "/trytond/report/report.py", line 143, in execute
    cls.render(action_report, report_context))
  File "/trytond/report/report.py", line 227, in render
    data = "">   File "/relatorio/templates/base.py", line 34, in render
    return self.serializer(self.events)
  File "/relatorio/templates/opendocument.py", line 884, 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"format_date(lines.review, user.language, date=True) or ''">
TypeError: format_date() got an unexpected keyword argument 'date'


Any hint?
format_date takes value and language only as arguments.

http://hg.tryton.org/trytond/file/4d23d0174282/trytond/report/report.py#l261


Regards
Cecili

--
Lic. Cecilia Santos Popper



--
With Best Regards,
Prakhar


reply via email to

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