Issue 11516

Title
Can not use Tasks Leveling wizard on project_plan
Priority
bug
Status
closed
Superseder
TypeError: unsupported operand type(s) for +: 'int' and 'datetime.timedelta' (issue 7799)
Nosy list
ced, hodeinavarro
Assigned to
Keywords

Created on 2022-05-25.10:18:15 by hodeinavarro, last changed 4 months ago by ced.

Messages

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2022-05-25.10:28:57

Duplicate issue7799

Author: [hidden] (hodeinavarro)
Date: 2022-05-25.10:18:14

When using Tasks Leveling wizard on a task.

Traceback (most recent call last):
  File "/usr/local/lib/python39/dist-packages/trytond/wsgipy", line 119, in dispatch_request
    return endpoint(request, **requestview_args)
  File "/usr/local/lib/python39/dist-packages/trytond/protocols/dispatcherpy", line 46, in rpc
    return methodsget(requestrpc_method, _dispatch)(
  File "/usr/local/lib/python39/dist-packages/trytond/wsgipy", line 86, in auth_required
    return wrapped(*args, **kwargs)
  File "/usr/local/lib/python39/dist-packages/trytond/protocols/wrapperspy", line 161, in wrapper
    return func(request, pool, *args, **kwargs)
  File "/usr/local/lib/python39/dist-packages/trytond/protocols/dispatcherpy", line 181, in _dispatch
    result = rpcresult(meth(*c_args, **c_kwargs))
  File "/usr/local/lib/python39/dist-packages/trytond/wizard/wizardpy", line 314, in execute
    return wizard_execute(state_name)
  File "/usr/local/lib/python39/dist-packages/trytond/wizard/wizardpy", line 345, in _execute
    result = self_execute(transition())
  File "/usr/local/lib/python39/dist-packages/trytond/modules/project_plan/workpy", line 651, in transition_leveling
    selfrecordcreate_leveling()
  File "/usr/local/lib/python39/dist-packages/trytond/modules/project_plan/workpy", line 541, in create_leveling
    for sibling, delay in compute_delays(siblings):
  File "/usr/local/lib/python39/dist-packages/trytond/modules/project_plan/workpy", line 522, in compute_delays
    [delay + siblingduration,
TypeError: unsupported operand type(s) for +: 'int' and 'datetimetimedelta'
History
Date User Action Args
2022-05-25 10:28:57cedsetmessages: + msg76778
nosy: + ced
status: unread -> closed
superseder: + TypeError: unsupported operand type(s) for +: 'int' and 'datetime.timedelta'
2022-05-25 10:18:15hodeinavarrocreate

Showing 10 items. Show all history (warning: this could be VERY long)