greetings GNUHealth have recently installed in a virtual machine in VirtualBox
to test it but I've run into several errors by solving I've been slowly, but
one of them is this that put full then happens when trying to print a
medication récipe:
Traceback (mostrecent call last):
File "/trytond/protocols/jsonrpc.py",line 150, in _marshaled_dispatch
response['result'] = dispatch_method(method, params)
File"/trytond/protocols/jsonrpc.py", line 179, in _dispatch
res = dispatch(*args)
File"/trytond/protocols/dispatcher.py", line 161, indispatch
result = rpc.result(meth(*c_args,**c_kwargs))
File "/trytond/report/report.py",line 144, in execute
type, data =cls.parse(action_report, records, data, {})
File"/trytond/report/report.py", line 293, in parse
data = rel_report(**localcontext).render()
File"/relatorio/templates/base.py", line 34, in render
return self.serializer(self.events)
File"/relatorio/templates/opendocument.py", line 855, 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 instream:
File "/genshi/template/base.py", line618, 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", line289, 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
<Expressionu'formatLang(prescription.report_prescription_date,user.language)'>
File "/genshi/template/eval.py",line 317, in lookup_attr
val = getattr(obj,key)
File "/trytond/report/report.py", line 172,in __getattr__
return getattr(record, name)
File "/trytond/model/fields/field.py", line 213, in__get__
return inst.__getattr__(self.name)
File "/trytond/model/modelstorage.py", line 1312, in__getattr__
read_data = self.read(list(ids),ffields.keys())
File "/trytond/model/modelsql.py",line 645, in read
getter_results =field.get(ids, cls, field_list, values=result)
File"/trytond/model/fields/function.py", line 86, in get
return dict((name, call(name)) for name in names)
File"/trytond/model/fields/function.py", line 86, in<genexpr>
return dict((name, call(name))for name in names)
File"/trytond/model/fields/function.py", line 80, in call
return dict((r.id, method(r, name)) for r in records)
File"/trytond/model/fields/function.py", line 80, in<genexpr>
return dict((r.id, method(r,name)) for r in records)
File"/trytond/modules/health/health.py", line 3772,
inget_report_prescription_date
returndatetime.astimezone(dt.replace(tzinfo=pytz.utc),timezone).date()
TypeError: astimezone() argument 1 must bedatetime.tzinfo, not None
I am using Ubuntu 14.04 on VirtualBox and GNUHealth version is 2.8.1
I appreciate any guidance.
Att. Ronal