mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
[FIX] app_common: _get_image_url2attachment
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user