AttributeError: 'unicode' object has no attribute 'rec_name'
I am a user.
yesterday, I created a new Tryton DB loading multiple modules, including timesheet and inserted 2 timesheets.
This morning I have what will follow. In the mean time I tried to update modules that needed to be updated.
<code>
Traceback (most recent call last):
File "/trytond/wsgi.py", line 47, in dispatch_request
return endpoint(request, **request.view_args)
File "/trytond/protocols/dispatcher.py", line 41, in rpc
request, database_name, *request.rpc_params)
File "/trytond/wsgi.py", line 39, in auth_required
return wrapped(*args, **kwargs)
File "/trytond/protocols/wrappers.py", line 105, in wrapper
return func(request, pool, *args, **kwargs)
File "/trytond/protocols/dispatcher.py", line 165, in _dispatch
result = rpc.result(meth(*c_args, **c_kwargs))
File "/trytond/model/modelsql.py", line 815, in read
fields_related[fname]):
File "/trytond/model/modelsql.py", line 778, in read
getter_results = field.get(ids, cls, field_list, values=result)
File "/trytond/model/fields/function.py", line 102, in get
return dict((name, call(name)) for name in names)
File "/trytond/model/fields/function.py", line 102, in <genexpr>
return dict((name, call(name)) for name in names)
File "/trytond/model/fields/function.py", line 96, in call
return dict((r.id, method(r, name)) for r in records)
File "/trytond/model/fields/function.py", line 96, in <genexpr>
return dict((r.id, method(r, name)) for r in records)
File "/trytond/modules/timesheet/work.py", line 186, in get_rec_name
return self.origin.rec_name
AttributeError: 'unicode' object has no attribute 'rec_name'
</code>
Files
Download | Creator | Timestamp | Type |
---|---|---|---|
unnamed | @ceesodupont | 2017-09-06 10:12:50.043000 UTC | text/plain |
unnamed | @ceesodupont | 2017-09-08 10:44:18.511000 UTC | text/plain |