Skip to content
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

Conversation

kcv-odoo
Copy link
Contributor

@kcv-odoo kcv-odoo commented May 2, 2024

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

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

@robodoo
Copy link
Contributor

robodoo commented May 2, 2024

@C3POdoo C3POdoo added the OE the report is linked to a support ticket (opw-...) label May 2, 2024
@kcv-odoo kcv-odoo marked this pull request as ready for review May 2, 2024 10:05
@kcv-odoo
Copy link
Contributor Author

kcv-odoo commented May 2, 2024

Hello @sebgeelen
could you review this PR?
As I have to remove your urgent 😢
I tested problem mention in your task it is working properly without urgent

Thank youu 🙂

@kcv-odoo kcv-odoo requested review from sebgeelen and Goaman May 2, 2024 10:08
@C3POdoo C3POdoo requested a review from a team May 2, 2024 10:09
@sebgeelen
Copy link
Contributor

sebgeelen commented May 2, 2024

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 kcv-odoo requested a review from dmo-odoo May 6, 2024 08:50
@dmo-odoo
Copy link
Contributor

@kcv-odoo You should adapt the comment since you don't use urgent anymore.

@kcv-odoo kcv-odoo force-pushed the 17.0-web_editor-fix-component-destoy-error-kcv branch 2 times, most recently from 10a68ae to 4e61fa1 Compare May 13, 2024 07:18
@kcv-odoo
Copy link
Contributor Author

@kcv-odoo You should adapt the comment since you don't use urgent anymore.

@dmo-odoo Done! 👍

@dmo-odoo
Copy link
Contributor

@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
@kcv-odoo kcv-odoo force-pushed the 17.0-web_editor-fix-component-destoy-error-kcv branch from 4e61fa1 to 7e30d3c Compare June 3, 2024 10:15
@kcv-odoo
Copy link
Contributor Author

kcv-odoo commented Jun 3, 2024

Hello @dmo-odoo 👋
Could you r+ again? (I had to rebase branch because bot was not doing anything because of red runbot)
Thank you!

@dmo-odoo
Copy link
Contributor

dmo-odoo commented Jun 3, 2024

@robodoo r+

@robodoo robodoo closed this in db60ef5 Jun 3, 2024
lohwswilson pushed a commit to lohwswilson/odoo that referenced this pull request Jun 5, 2024
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OE the report is linked to a support ticket (opw-...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants