Issue 11231

Crash on Tasks Leveling wizard
TypeError: unsupported operand type(s) for +: 'int' and 'datetime.timedelta' (issue 7799)
Nosy list
acaubet, ced
Assigned to

Created on 2022-02-09.13:55:27 by acaubet, last changed 7 months ago by ced.


Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2022-02-09.14:04:08

Duplicate issue7799.

Author: [hidden] (acaubet)
Date: 2022-02-09.13:55:27

I just activated on the demo the module project_plan and when going to a running project work and click on the wizard button Tasks Leveling crashes in the following traceback:

Traceback (most recent call last):
  File "/usr/local/lib/python39/dist-packages/trytond/wsgipy", line 117, 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 84, in auth_required
    return wrapped(*args, **kwargs)
  File "/usr/local/lib/python39/dist-packages/trytond/protocols/wrapperspy", line 159, in wrapper
    return func(request, pool, *args, **kwargs)
  File "/usr/local/lib/python39/dist-packages/trytond/protocols/dispatcherpy", line 180, 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 653, in transition_leveling
  File "/usr/local/lib/python39/dist-packages/trytond/modules/project_plan/workpy", line 543, in create_leveling
    for sibling, delay in compute_delays(siblings):
  File "/usr/local/lib/python39/dist-packages/trytond/modules/project_plan/workpy", line 524, in compute_delays
    [delay + siblingduration,
TypeError: unsupported operand type(s) for +: 'int' and 'datetimetimedelta'
Date User Action Args
2022-02-09 14:04:08cedsetmessages: + msg73974
nosy: + ced
status: unread -> closed
superseder: + TypeError: unsupported operand type(s) for +: 'int' and 'datetime.timedelta'
2022-02-09 13:55:51acaubetsettitle: Crash on -> Crash on Tasks Leveling wizard
2022-02-09 13:55:27acaubetcreate

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