From f50ca7b3deed142892620d59591b1e99719a02fd Mon Sep 17 00:00:00 2001 From: Chill Date: Mon, 11 Mar 2024 17:45:49 +0800 Subject: [PATCH] [FIX] app_common: _get_image_url2attachment --- app_common/models/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app_common/models/base.py b/app_common/models/base.py index 79809b85..475631c5 100644 --- a/app_common/models/base.py +++ b/app_common/models/base.py @@ -114,7 +114,7 @@ class Base(models.AbstractModel): return get_image_from_url(url) @api.model - def get_image_url2attachment(self, url, mimetype_list=None): + def _get_image_url2attachment(self, url, mimetype_list=None): # Todo: mimetype filter if not self._app_check_sys_op(): return False @@ -135,7 +135,7 @@ class Base(models.AbstractModel): return False @api.model - def get_image_base642attachment(self, data): + def _get_image_base642attachment(self, data): if not self._app_check_sys_op(): return False image, file_name = get_image_base642attachment(data)