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

[FW][FIX] Payment: prevent error in rendering payment icon list with PIL incompatible icon image formats #159754

Conversation

fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Mar 28, 2024

Description of the issue/feature this PR addresses:

Replace the use of 't-esc' with 't-field' for the payment icon image in the icons list template. The latter, for an image field, provides two options for rendering the payment icon image: use the PIL library to obtain the image when given the option 'qweb_img_raw_data', or use a URL. The former only considers the first option, allowing only image formats compatible with the PIL library.

Current behavior before PR:

Only image formats compatible with the PIL library can be used for the payment icons.

Desired behavior after PR is merged:

Other formats including the ones compatible with the PIL library can be used for the payment icons.


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Forward-Port-Of: #159586
Forward-Port-Of: #158728

…incompatible icon image formats

Replace the use of 't-esc' with 't-field' for the payment icon image in
the icons list template. The latter, for an image field, provides two
options for rendering the payment icon image: use the PIL library to
obtain the image when given the option 'qweb_img_raw_data', or use a
URL. The former only considers the first option, allowing only image
formats compatible with the PIL library.

X-original-commit: ce68495
@robodoo
Copy link
Contributor

robodoo commented Mar 28, 2024

@robodoo robodoo added the forwardport This PR was created by @fw-bot label Mar 28, 2024
@C3POdoo C3POdoo added the RD research & development, internal work label Mar 28, 2024
@AntoineVDV
Copy link
Contributor

@fw-bot r+

robodoo pushed a commit that referenced this pull request Mar 31, 2024
…incompatible icon image formats

Replace the use of 't-esc' with 't-field' for the payment icon image in
the icons list template. The latter, for an image field, provides two
options for rendering the payment icon image: use the PIL library to
obtain the image when given the option 'qweb_img_raw_data', or use a
URL. The former only considers the first option, allowing only image
formats compatible with the PIL library.

closes #159754

X-original-commit: ce68495
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
@robodoo robodoo closed this Mar 31, 2024
@robodoo robodoo added the 17.3 label Mar 31, 2024
@fw-bot fw-bot deleted the master-16.0-replace_directive_expression-CLaurelB-t0H5-fw branch April 14, 2024 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
17.3 forwardport This PR was created by @fw-bot RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants