Sun 24 Aug 2014 04:36:13 PM UTC, comment #2:
I have just installed module health not all modules GNU in tryton 3.2, because I testing just this module, for reproduce it I think is best just install this module about tryton base modules,
note: There is not instituttions created, this first Institution, and there is not specialties by institutions
So for reproduce it, enter to
Health >> Institutions >> New
fill the fields and create new line for specialties, when a specialty is select the error raise.
|
Sat 23 Aug 2014 10:32:07 PM UTC, original submission:
Traceback (most recent call last):
File "/trytond/protocols/jsonrpc.py", line 125, in _marshaled_dispatch
response['result'] = dispatch_method(method, params)
File "/trytond/protocols/jsonrpc.py", line 158, in _dispatch
res = dispatch(*args)
File "/trytond/protocols/dispatcher.py", line 158, in dispatch
result = rpc.result(meth(c_args, *c_kwargs))
File "/trytond/model/modelsql.py", line 656, in read
getter_results = field.get(ids, cls, field_list, values=result)
File "/trytond/model/fields/function.py", line 87, in get
return dict((name, call(name)) for name in names)
File "/trytond/model/fields/function.py", line 87, in <genexpr>
return dict((name, call(name)) for name in names)
File "/trytond/model/fields/function.py", line 81, in call
return dict((r.id, method(r, name)) for r in records)
File "/trytond/model/fields/function.py", line 81, in <genexpr>
return dict((r.id, method(r, name)) for r in records)
File "/trytond/modules/health/health.py", line 806, in get_rec_name
return self.specialty.name
AttributeError: 'NoneType' object has no attribute 'name'
|