Post by thomi_ch »

Hello

If a normal project user (not a project manager) edit a task and change the duration days, he gets project.project access error, cause in any reason on task write it will also write project.project_start_date and project.name field.
I made a small workaround in models/project_task.py, see attachment.

bryntum_gantt_task_write_error.png
bryntum_gantt_task_write_error.png (30.49 KiB) Viewed 279 times

Another issue i found is changing assigned resources unit for a task.
Eg. if adding two employees and set unit for each to 50%, on reloading BryntumGantt it goes back to 100%.
I found that one time it will save that data in the controller and second time in task write method.
In both situation, existing assigned resources are unlinked and re-created again.
In task write method it adds it with default 100%:

bryntum_gantt_task_ressource_unit.png
bryntum_gantt_task_ressource_unit.png (29.74 KiB) Viewed 279 times

In the controller, it will do it correct:

bryntum_gantt_controller_task_ressource_unit.png
bryntum_gantt_controller_task_ressource_unit.png (35.04 KiB) Viewed 279 times

My workaround: comment the code in write method.

Hope it's clear explained and can be fixed.

Regards
thomi


Post by nivl »

Hi thomi,

Thank you for reporting these. They're clear. I've created tasks for these and they'll be fixed as soon as possible. I'll let you know once they are.

Niels


Post by thomi_ch »

Hey Niels

many thanks for your information...

regards
thomi


Post by nivl »

Hi thomi,

We just released Version 14.0.2.1.13 which fixes the units for the assigned resources. Feel free to check it out.

Project.sudo is still being worked on, I'll update you when it's been worked out.

Niels


Post by thomi_ch »

Hey Niels

Many thanks.. will check it out and give a feedback.

Have a nice day and regards
thomi


Post by thomi_ch »

Hey Niels

We now made upgrade to v14.0.2.1.13.. now if open BryntumGantt view, select a project and move the mouse over tasks or over the timeline, we got this JS error:

Error:
Uncaught TypeError: i[u(...)][u(...)] is not a function

http://localhost:7073/bryntum_gantt/static/gantt_src/js/chunk-vendors.js?v14.0.2.1.13:64
Traceback:
TypeError: i[u(...)][u(...)] is not a function
    at bI.updateHoveredCell (http://localhost:7073/bryntum_gantt/static/gantt_src/js/chunk-vendors.js?v14.0.2.1.13:64:35442)
    at bI.set (http://localhost:7073/bryntum_gantt/static/gantt_src/js/chunk-vendors.js?v14.0.2.1.13:11:24567)
    at bI.onElementMouseOut (http://localhost:7073/bryntum_gantt/static/gantt_src/js/chunk-vendors.js?v14.0.2.1.13:64:34569)
    at bI.onElementMouseOut (http://localhost:7073/bryntum_gantt/static/gantt_src/js/chunk-vendors.js?v14.0.2.1.13:64:240415)
    at bI.onElementMouseOut (http://localhost:7073/bryntum_gantt/static/gantt_src/js/chunk-vendors.js?v14.0.2.1.13:64:1753630)
    at functionChainRunner (http://localhost:7073/bryntum_gantt/static/gantt_src/js/chunk-vendors.js?v14.0.2.1.13:11:204199)
    at e.<computed> (http://localhost:7073/bryntum_gantt/static/gantt_src/js/chunk-vendors.js?v14.0.2.1.13:11:203878)
    at LM.onElementMouseOut (http://localhost:7073/bryntum_gantt/static/gantt_src/js/chunk-vendors.js?v14.0.2.1.13:64:1308085)
    at bI.handleEvent (http://localhost:7073/bryntum_gantt/static/gantt_src/js/chunk-vendors.js?v14.0.2.1.13:64:29833)
    at HTMLDivElement.b (http://localhost:7073/bryntum_gantt/static/gantt_src/js/chunk-vendors.js?v14.0.2.1.13:11:149057)

How we can fix that asap?

Regards
thomi


Post by tomb »

Hey Thomi,

I checked this in a clean install of the module (https://odoo-gantt14ce.bryntum.com/) and there I don't see this behaviour.

Do you have anything non-standard defined in your Gantt configuration object? If so, can you post it?

Also, can you let us know if it happens for all tasks or just for some?

A video would be nice as well.


Post by tomb »

PS. If you can replicate it on our demo instance that would of course be even better


Post by thomi_ch »

Hey tomb

Currently no specific Gantt config object data, still empty.

I tried to test on your demo instance https://odoo-gantt14ce.bryntum.com/. But the demo user has project manager right, if i'm correct and then, no issue will come up.
The user must be a normal project user, who eg. only can edit tasks...

Regards
thomi


Post by thomi_ch »

reproduced it locally with fresh o14 db and a demo user, which is just a project user:

https://app.screencastify.com/v3/watch/wbOdQiEQUFPzmGNEHgQ5

thomi


Post Reply