health
[Top][All Lists]
Advanced

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

Re: [Health] unsupported operand type(s) for +: 'NoneType' and 'str'


From: ronald munjoma
Subject: Re: [Health] unsupported operand type(s) for +: 'NoneType' and 'str'
Date: Thu, 17 Jan 2013 11:42:27 +0200

Hi Luis,


On 17 January 2013 11:21, Luis Falcon <address@hidden> wrote:
Hi Ronald !

On Wed, Jan 16, 2013 at 5:58 PM, ronald munjoma <address@hidden> wrote:
> Dear All,
>
> I am getting the below traceback when directly opening the below menu's on
> the 1.8.0 RC1 online demo:
>
> - Appointments
> - Centres
> - Buildings
> - Units
> - wards
> - Operating Room
> -
>
> Traceback (most recent call last):
>   File "/trytond/protocols/jsonrpc.py", line 123, in _marshaled_dispatch
>     response['result'] = dispatch_method(method, params)
>   File "/trytond/protocols/jsonrpc.py", line 156, in _dispatch
>     res = dispatch(*args)
>   File "/trytond/protocols/dispatcher.py", line 154, in dispatch
>     result = rpc.result(meth(*args, **kwargs))
>   File "/trytond/model/modelsql.py", line 652, in read
>     if x[field]], fields_related[field]):
>   File "/trytond/model/modelsql.py", line 616, in read
>     res2 = cls._fields[field].get(ids, cls, field_list, values=res)
>   File "/trytond/model/fields/function.py", line 89, in get
>     return dict((name, call(name)) for name in names)
>   File "/trytond/model/fields/function.py", line 89, in <genexpr>
>     return dict((name, call(name)) for name in names)
>   File "/trytond/model/fields/function.py", line 83, in call
>     return dict((r.id, method(r, name)) for r in records)
>   File "/trytond/model/fields/function.py", line 83, in <genexpr>
>     return dict((r.id, method(r, name)) for r in records)
>   File "/trytond/modules/health/health.py", line 579, in get_rec_name
>     return (self.lastname + ', ' + self.name)
> TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
Thanks for the feedback !
This is due to the update to the new Tryton version, when dealing with
null values on the lastname.

It has been fixed in the community server and a patch will be included
in the 1.8 series.

Please let us know if it works for you now.

I can confirm that the issue has been fixed.

Regards 
Ronald Munjoma 

Best,
>
> Regards
> Ronald Munjoma



--
Luis Falcon
GNU Health
http://health.gnu.org



reply via email to

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