Skip to content

Conversation

bvr-odoo
Copy link
Contributor

@bvr-odoo bvr-odoo commented Mar 21, 2025

[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.

@robodoo
Copy link
Contributor

robodoo commented Mar 21, 2025

Pull request status dashboard

@bvr-odoo bvr-odoo force-pushed the 18.0-fix-donation-button-preview-on-drag-bvr branch from b9e8a84 to 607bad8 Compare March 21, 2025 07:40
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.

[1]: odoo@edf81c1
@bvr-odoo bvr-odoo force-pushed the 18.0-fix-donation-button-preview-on-drag-bvr branch from 607bad8 to e870a1c Compare March 21, 2025 07:49
@bvr-odoo bvr-odoo marked this pull request as ready for review March 21, 2025 07:50
@C3POdoo C3POdoo requested a review from a team March 21, 2025 07:51
@C3POdoo C3POdoo added the RD research & development, internal work label Mar 21, 2025
Copy link
Contributor

@SergeBayet SergeBayet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍 Thanks

@bso-odoo
Copy link
Contributor

@robodoo delegate=SergeBayet

@SergeBayet
Copy link
Contributor

@robodoo r+

@robodoo robodoo closed this in dae84fc Mar 21, 2025
omar-sherif9992 pushed a commit to odoo-dev/odoo that referenced this pull request Mar 26, 2025
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.

[1]: odoo@edf81c1

closes odoo#202829

Signed-off-by: Serge Bayet (seba) <seba@odoo.com>
gamarino pushed a commit to numaes/numa-public-odoo that referenced this pull request Mar 27, 2025
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.

[1]: odoo/odoo@edf81c1

closes odoo/odoo#202829

Signed-off-by: Serge Bayet (seba) <seba@odoo.com>
@fw-bot fw-bot deleted the 18.0-fix-donation-button-preview-on-drag-bvr branch March 28, 2025 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

RD research & development, internal work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants