Post by emilie »

Hi,
I noticed a strange behavior which falsifies the calculation of the dates: when I put several tasks in manually scheduled to False, 2 updates are launched and the second call positions constraints values which are initially not existing.

Odoo---Vue-Gantt-Pro.webm
video multiple updates
(17.05 MiB) Downloaded 72 times

It is true that the response time is long but this should not modify the initially empty constraints

Here is the content of the first update,

{"jsonrpc":"2.0","method":"call","params":{"data":"[{\"model\":{\"id\":\"project-task_117926\"},\"newData\":{\"manuallyScheduled\":false,\"id\":\"project-task_117926\",\"startDate\":\"2039-10-08T20:35:27+02:00\",\"endDate\":\"2040-02-05T19:35:27+01:00\"}},{\"model\":{\"id\":\"project-task_117950\"},\"newData\":{\"parentIndex\":0,\"id\":\"project-task_117950\",\"startDate\":\"2039-10-08T20:35:27+02:00\",\"endDate\":\"2039-10-20T20:35:27+02:00\"}},{\"model\":{\"id\":\"project-task_117960\"},\"newData\":{\"parentIndex\":1,\"id\":\"project-task_117960\",\"startDate\":\"2039-10-20T20:35:27+02:00\",\"endDate\":\"2039-11-01T19:35:27+01:00\"}},{\"model\":{\"id\":\"project-task_117968\"},\"newData\":{\"parentIndex\":2,\"id\":\"project-task_117968\",\"startDate\":\"2039-11-01T19:35:27+01:00\",\"endDate\":\"2039-11-13T19:35:27+01:00\"}},{\"model\":{\"id\":\"project-task_117970\"},\"newData\":{\"parentIndex\":3,\"id\":\"project-task_117970\",\"startDate\":\"2039-11-13T19:35:27+01:00\",\"endDate\":\"2039-11-25T19:35:27+01:00\"}},{\"model\":{\"id\":\"project-task_117962\"},\"newData\":{\"parentIndex\":4,\"id\":\"project-task_117962\",\"startDate\":\"2039-11-25T19:35:27+01:00\",\"endDate\":\"2039-12-07T19:35:27+01:00\"}},{\"model\":{\"id\":\"project-task_117933\"},\"newData\":{\"parentIndex\":5,\"id\":\"project-task_117933\",\"startDate\":\"2039-12-07T19:35:27+01:00\",\"endDate\":\"2039-12-19T19:35:27+01:00\"}},{\"model\":{\"id\":\"project-task_117965\"},\"newData\":{\"parentIndex\":6,\"id\":\"project-task_117965\",\"startDate\":\"2039-12-19T19:35:27+01:00\",\"endDate\":\"2039-12-31T19:35:27+01:00\"}}]"},"id":227426474376}

then that of the second

{"jsonrpc":"2.0","method":"call","params":{"data":"[{\"model\":{\"id\":\"project-task_117926\"},\"newData\":{\"manuallyScheduled\":false,\"id\":\"project-task_117926\",\"startDate\":\"2039-10-08T20:35:27+02:00\",\"endDate\":\"2040-02-05T19:35:27+01:00\"}},{\"model\":{\"id\":\"project-task_117950\"},\"newData\":{\"parentIndex\":0,\"id\":\"project-task_117950\",\"startDate\":\"2039-10-08T20:35:27+02:00\",\"endDate\":\"2039-10-20T20:35:27+02:00\"}},{\"model\":{\"id\":\"project-task_117960\"},\"newData\":{\"parentIndex\":1,\"id\":\"project-task_117960\",\"startDate\":\"2039-10-20T20:35:27+02:00\",\"endDate\":\"2039-11-01T19:35:27+01:00\"}},{\"model\":{\"id\":\"project-task_117968\"},\"newData\":{\"parentIndex\":2,\"id\":\"project-task_117968\",\"startDate\":\"2039-11-01T19:35:27+01:00\",\"endDate\":\"2039-11-13T19:35:27+01:00\"}},{\"model\":{\"id\":\"project-task_117970\"},\"newData\":{\"parentIndex\":3,\"id\":\"project-task_117970\",\"startDate\":\"2039-11-13T19:35:27+01:00\",\"endDate\":\"2039-11-25T19:35:27+01:00\"}},{\"model\":{\"id\":\"project-task_117962\"},\"newData\":{\"parentIndex\":4,\"id\":\"project-task_117962\",\"startDate\":\"2039-11-25T19:35:27+01:00\",\"endDate\":\"2039-12-07T19:35:27+01:00\"}},{\"model\":{\"id\":\"project-task_117933\"},\"newData\":{\"parentIndex\":5,\"id\":\"project-task_117933\",\"startDate\":\"2039-12-07T19:35:27+01:00\",\"endDate\":\"2039-12-19T19:35:27+01:00\"}},{\"model\":{\"id\":\"project-task_117965\"},\"newData\":{\"parentIndex\":6,\"id\":\"project-task_117965\",\"startDate\":\"2039-12-19T19:35:27+01:00\",\"endDate\":\"2039-12-31T19:35:27+01:00\"}}]"},"id":227426474376}

Post by Terence »

Hard to tell what is going on here. Can you reproduce it on our demo site?

https://odoo-gantt.bryntum.com/web/login

Or you need to send me a db with steps to reproduce.


Post by emilie »

Hi Terence,
We tried to reproduce on the demo site, by importing 1 to 6 projects with their tasks, but you have only one application installed (project) against twenty with us, and much less data, the response times are clearly different.
Our database will not work on your site because we have custom developments, but is it possible to have someone to look at or guide us in debugging?

Regards


Post by Terence »

With the information I have now this is very hard (or impossible) for me to reproduce.

Can you give me access to a test instance at your site? I can have a quick look if you explain me the steps how to reproduce and what is expected and what is not expected?

And could you explain a bit more what you mean by 'The second call positions constraints values which are initially not existing'.

You can send me access at terence(at)bryntum.com


Post by Terence »

Still not able to reproduce, very strange. But I may have found the cause. I created a ticket for it.

https://github.com/bryntum/odoo-support/issues/89

Will try to do an update upcoming week.

Thanks for reporting.


Post by emilie »

Hi Terence,

I see on Odoo apps website the release 1.3.8
Does it correct this point ?


Post by Terence »

Yes it should. I changed the default model value for contraint type.


Post Reply