odoo/odoo#202926

Created by fw-bot
Merged at e3d1132f35bd681977c42a44c8505367adc4877f

Statuses:

label
odoo-dev:saas-18.1-18.0-fix-donation-button-preview-on-drag-bvr-424572-fw
head
c154f83d94c9e09c8979eb4ca75399d1d71bb7eb
merged
7 months ago by Website, Serge Bayet (seba)
odoo/odoo
18.0 #202829
saas-18.1 #202926
saas-18.2 #203197
saas-18.3
saas-18.4
19.0
master #203198

[FW] 18.0 fix donation button preview on drag bvr

[FIX] website_payment: fix donation button preview on drag

Steps to reproduce:

  • Enter edit mode.
  • If not already installed, click the "Donation Button" in the snippet
    menu to install the "website_payment" app.
  • Start dragging the "Donation Button" without dropping it onto the page
    to display its preview.
  • Bug: Prefilled buttons are displayed in the preview when they
    shouldn't be.

This bug was introduced by commit 1, where the prefilled buttons were
added to the "s_donation" snippet template so that they would be visible
in the "s_donation" preview in the snippets dialog. Unfortunately, this
change also made them visible for the inner "Donation Button" snippet,
which shouldn't be the case.

Forward-Port-Of: #202829