Hi,
The error message indicates that there's an issue
with rendering the template related to the payment form logo. The error
suggests that a non-image binary field is being treated as an image,
which is causing the ValueError.
Please check with the below:
1. Check the Payment Form Template:
Go to Settings > Technical > User Interface > Views.
Search for the template form_logo.
Look for any code snippet that tries to access a binary field and use it as an image source.
Common mistakes include using a field meant for storing documents or other data types instead of an image field.
2. Verify the Invoice Data:
Open the invoice you're having trouble previewing.
Check the field associated with the payment.form_logo template
Ensure
this field actually contains a valid image file. Uploading a non-image
file or leaving the field empty can cause this error.
3)If you've made customizations to the payment.form_logo template or the invoice model, there might be a bug in your code.
Review
your customizations to see if you're inadvertently referencing the
wrong field or attempting to convert a non-image field.
4. Sometimes, browser cache can cause unexpected behavior. Clearing the browser cache might resolve the issue.
Hope it helps