Skip to content

Conversation

@fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Mar 19, 2025

In a grouped kanban view (e.g. project tasks), especially on a slow network, quickly move several records from a column to another, and click on a record to open it.

Before this commit, we switched to the opened record directly, without waiting for the ongoing rpcs (web_save, resequence), for each moved record. However, the async protection in the orm service prevent destroyed components from doing rpcs. As a consequence, a crash can occur if some moved records could not be saved before leaving the kanban view.

This commit ensures that we wait for all those operations to be done before leaving the kanban view. That way, all moved records are properly saved, and no crash occurs.

Issue reported on our prod.

Description of the issue/feature this PR addresses:

Current behavior before PR:

Desired behavior after PR is merged:


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Forward-Port-Of: #202247
Forward-Port-Of: #201761

In a grouped kanban view (e.g. project tasks), especially on a slow
network, quickly move several records from a column to another, and
click on a record to open it.

Before this commit, we switched to the opened record directly,
without waiting for the ongoing rpcs (web_save, resequence), for
each moved record. However, the `async` protection in the orm
service prevent destroyed components from doing rpcs. As a
consequence, a crash can occur if some moved records could not
be saved before leaving the kanban view.

This commit ensures that we wait for all those operations to be
done before leaving the kanban view. That way, all moved records
are properly saved, and no crash occurs.

Issue reported on our prod.

X-original-commit: 49ce1b5
@robodoo robodoo added the forwardport This PR was created by @fw-bot label Mar 19, 2025
@robodoo
Copy link
Contributor

robodoo commented Mar 19, 2025

Pull request status dashboard

@fw-bot
Copy link
Contributor Author

fw-bot commented Mar 19, 2025

@aab-odoo @Polymorphe57 this PR targets master and is the last of the forward-port chain.

To merge the full chain, use

@robodoo r+

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@Polymorphe57
Copy link
Contributor

@robodoo r+

@C3POdoo C3POdoo added the RD research & development, internal work label Mar 19, 2025
robodoo pushed a commit that referenced this pull request Mar 19, 2025
In a grouped kanban view (e.g. project tasks), especially on a slow
network, quickly move several records from a column to another, and
click on a record to open it.

Before this commit, we switched to the opened record directly,
without waiting for the ongoing rpcs (web_save, resequence), for
each moved record. However, the `async` protection in the orm
service prevent destroyed components from doing rpcs. As a
consequence, a crash can occur if some moved records could not
be saved before leaving the kanban view.

This commit ensures that we wait for all those operations to be
done before leaving the kanban view. That way, all moved records
are properly saved, and no crash occurs.

Issue reported on our prod.

closes #202480

X-original-commit: 49ce1b5
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Signed-off-by: Mathieu Duckerts-Antoine (dam) <dam@odoo.com>
@robodoo robodoo added the 18.3 label Mar 19, 2025
@robodoo robodoo closed this Mar 19, 2025
@fw-bot fw-bot deleted the master-saas-17.4-kanban-move-open-fix-aab-423698-fw branch March 26, 2025 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

18.3 forwardport This PR was created by @fw-bot RD research & development, internal work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants