[FIX] app_common: _get_image_url2attachment

This commit is contained in:
Chill
2024-03-11 17:45:49 +08:00
parent 6952544619
commit f50ca7b3de

View File

@@ -114,7 +114,7 @@ class Base(models.AbstractModel):
return get_image_from_url(url) return get_image_from_url(url)
@api.model @api.model
def get_image_url2attachment(self, url, mimetype_list=None): def _get_image_url2attachment(self, url, mimetype_list=None):
# Todo: mimetype filter # Todo: mimetype filter
if not self._app_check_sys_op(): if not self._app_check_sys_op():
return False return False
@@ -135,7 +135,7 @@ class Base(models.AbstractModel):
return False return False
@api.model @api.model
def get_image_base642attachment(self, data): def _get_image_base642attachment(self, data):
if not self._app_check_sys_op(): if not self._app_check_sys_op():
return False return False
image, file_name = get_image_base642attachment(data) image, file_name = get_image_base642attachment(data)