Unable to save task without effort_duration and allocations
When saving a task without effort I get the following error:
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 106, in wrapper
return func(request, pool, *args, **kwargs)
File "/trytond/protocols/dispatcher.py", line 160, in _dispatch
result = rpc.result(meth(*c_args, **c_kwargs))
File "/trytond/model/modelsql.py", line 773, in read
getter_results = field.get(ids, cls, field_list, values=result)
File "/trytond/model/fields/function.py", line 90, in get
return call(names)
File "/trytond/model/fields/function.py", line 83, in call
return method(records, name)
File "/trytond/modules/project_plan/work.py", line 120, in get_function_fields
seconds=work.effort_duration.total_seconds()
AttributeError: 'NoneType' object has no attribute 'total_seconds'