mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
add blank line
This commit is contained in:
@@ -118,6 +118,7 @@ class Base(models.AbstractModel):
|
||||
def get_ua_type(self):
|
||||
return get_ua_type()
|
||||
|
||||
|
||||
def get_image_from_url(url):
|
||||
if not url:
|
||||
return None
|
||||
@@ -128,6 +129,7 @@ def get_image_from_url(url):
|
||||
# 返回这个图片的base64编码
|
||||
return base64.b64encode(BytesIO(response.content).read())
|
||||
|
||||
|
||||
def get_image_url2attachment(url):
|
||||
if not url:
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user