-
Notifications
You must be signed in to change notification settings - Fork 23.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FIX] web_editor: fix component destroy error #164151
[FIX] web_editor: fix component destroy error #164151
Conversation
Hello @sebgeelen Thank youu 🙂 |
The code is ok for me if you made sure this change didn't broke the urgent save. If everything is thoroughly tested and still behave as intended, then you have my 👍 |
@kcv-odoo You should adapt the comment since you don't use urgent anymore. |
10a68ae
to
4e61fa1
Compare
@robodoo r+ |
Steps: - Install sale and editor apps. - Click on varient new button. - Add something in the description. - Discard that record. Issue: - Traceback component destroyed. Cause: - `commit_changes` does not had await on it and because of that it was performing other operations before actually commit changes and we are actully destroying record in `commit_changes` so there is no point doing other operations. Fix: - Add await and remove urgent from `commit_changes` method in-order to properly unmount component. opw-3892602
4e61fa1
to
7e30d3c
Compare
Hello @dmo-odoo 👋 |
@robodoo r+ |
Steps: - Install sale and editor apps. - Click on varient new button. - Add something in the description. - Discard that record. Issue: - Traceback component destroyed. Cause: - `commit_changes` does not had await on it and because of that it was performing other operations before actually commit changes and we are actully destroying record in `commit_changes` so there is no point doing other operations. Fix: - Add await and remove urgent from `commit_changes` method in-order to properly unmount component. opw-3892602 closes odoo#164151 Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
Steps:
Issue:
Cause:
commit_changes
does not had await on it and because of that it was performing other operations before actually commit changes and we are actullydestroying record in
commit_changes
so there isno point doing other operations.
Fix:
commit_changes
method in-order to properly unmount component.opw-3892602
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