-
Notifications
You must be signed in to change notification settings - Fork 26.7k
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] website_sale: sale ribbons disappearing #135908
[FIX] website_sale: sale ribbons disappearing #135908
Conversation
d137ad1
to
bfb634d
Compare
bfb634d
to
7d919d0
Compare
Hello @ande-odoo 👋
I made a video to make thinks clearer ;) |
Hello @ande-odoo 👋 |
7d919d0
to
d0d592e
Compare
d0d592e
to
308f61f
Compare
addons/website_sale/static/src/js/components/website_sale_ribbon.js
Outdated
Show resolved
Hide resolved
308f61f
to
decadfc
Compare
Current behaviour: When removing the ribbon from a product, the other ribbons are removed as well. Steps to reproduce: 1. Go to website 2. Go to Shop 3. Click on Edit (top right) 4. Add a ribbon to multiple products 5. Click on Save 6. Select a product with a ribbon 7. Remove the ribbon 8. (other ribbons are gone) Cause of the issue: Reverting fix introduced by odoo@5d13fa5 t-out was modified into t-field to be considered dirty when modified. but when removing a ribbon, t-field is set as empty, which overwrites ribbons html value. opw-3487397
decadfc
to
08b5d0f
Compare
After investigation, only reverting my previous PR fixes it, it probably has been fixed somewhere else in the meanwhile. I have updated this PR to only revert my previous fix. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed 😬 What was done at 5d13fa5 should not have been merged cc @AntoineVDV
- Template XML change in an old stable version
- It worked before like that: the template could not have been the sole change needed
Not really a fan of changing the XML again but I guess more people are using the old version so I guess a revert 3 months later is ok.
- What happened to the change that was discussed here: [FIX] website_sale: sale ribbons disappearing #135908 (comment) ? Did you create another PR about it?
- Testing this, I saw another bug: cannot change the ribbon colors. I guess you saw it too? Did you create a task in eCommerce pipe or in ours?
@robodoo r+
Current behaviour: When removing the ribbon from a product, the other ribbons are removed as well. Steps to reproduce: 1. Go to website 2. Go to Shop 3. Click on Edit (top right) 4. Add a ribbon to multiple products 5. Click on Save 6. Select a product with a ribbon 7. Remove the ribbon 8. (other ribbons are gone) Cause of the issue: Reverting fix introduced by 5d13fa5 t-out was modified into t-field to be considered dirty when modified. but when removing a ribbon, t-field is set as empty, which overwrites ribbons html value. opw-3487397 closes #135908 Signed-off-by: Quentin Smetz (qsm) <[email protected]>
I guess I can forget about receiving an answer..
Apparently solved now, maybe with the help of #152694
Created task-3734908 to handle that. |
Current behaviour: When removing the ribbon from a product, the other ribbons are removed as well. Steps to reproduce: 1. Go to website 2. Go to Shop 3. Click on Edit (top right) 4. Add a ribbon to multiple products 5. Click on Save 6. Select a product with a ribbon 7. Remove the ribbon 8. (other ribbons are gone) Cause of the issue: Reverting fix introduced by odoo@5d13fa5 t-out was modified into t-field to be considered dirty when modified. but when removing a ribbon, t-field is set as empty, which overwrites ribbons html value. opw-3487397 closes odoo#135908 Signed-off-by: Quentin Smetz (qsm) <[email protected]>
Current behaviour:
When removing the ribbon from a product,
the other ribbons are removed as well.
Steps to reproduce:
Cause of the issue:
Reverting fix introduced by 5d13fa5
t-out was modified into t-field to be considered dirty when modified.
but when removing a ribbon, t-field is set as empty,
which overwrites ribbons html value.
opw-3487397
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr