From d0628e0bbd6fc5e397903c924d6246eccef2f0da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20Laukavi=C4=8Dius?= Date: Fri, 30 Aug 2024 11:47:51 +0300 Subject: [PATCH] [FIX] vuestorefront: content_image 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. --- vuestorefront/controllers/main.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/vuestorefront/controllers/main.py b/vuestorefront/controllers/main.py index 865203d..de0186c 100644 --- a/vuestorefront/controllers/main.py +++ b/vuestorefront/controllers/main.py @@ -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: @@ -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 )