Skip to content

Commit

Permalink
[FIX] vuestorefront: content_image
Browse files Browse the repository at this point in the history
Using expected default values for content_image method that was being
extended. Particularly ``download`` keyword, which does not expect None
value. Also removed implicit **kw and added all explicit keyword
arguments to precisely follow original method.
  • Loading branch information
oerp-odoo committed Aug 30, 2024
1 parent 8cdc527 commit d0628e0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions vuestorefront/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,19 @@ class VSFBinary(Binary):
def content_image(
self,
xmlid=None,
model="ir.attachment",
model='ir.attachment',
id=None,
field="datas",
filename_field="name",
unique=None,
field='raw',
filename_field='name',
filename=None,
mimetype=None,
download=None,
unique=False,
download=False,
width=0,
height=0,
crop=False,
access_token=None,
**kwargs,
nocache=False
):
"""Validate width and height."""
try:
Expand All @@ -84,15 +84,15 @@ def content_image(
id=id,
field=field,
filename_field=filename_field,
unique=unique,
filename=filename,
unique=unique,
mimetype=mimetype,
download=download,
width=width,
height=height,
crop=crop,
access_token=access_token,
**kwargs,
nocache=nocache
)


Expand Down

0 comments on commit d0628e0

Please sign in to comment.