From d3487fad3694c67e3dcbc29fbfe38d7e5ceb736d Mon Sep 17 00:00:00 2001 From: "Antoine (ande)" Date: Tue, 5 Dec 2023 16:22:42 +0100 Subject: [PATCH] [FIX] website_sale: sale ribbons disappearing 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 https://github.com/odoo/odoo/commit/5d13fa522e7d06b03a098ada5fa6be15ddc49618 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/odoo#145864 X-original-commit: 71bdf1f674d0340a726dba96c65af6fdff25822f Signed-off-by: Quentin Smetz (qsm) --- addons/website_sale/views/templates.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_sale/views/templates.xml b/addons/website_sale/views/templates.xml index 000b79cfa0d..8793974b981 100644 --- a/addons/website_sale/views/templates.xml +++ b/addons/website_sale/views/templates.xml @@ -199,7 +199,7 @@ - +