fix #I8J7H1 [app_common][app_ai_media] 处理图片附件access_token

This commit is contained in:
Chill
2023-11-24 15:11:48 +08:00
parent 0fe52a3e76
commit 52baa9b8dd
2 changed files with 3 additions and 1 deletions

View File

@@ -39,7 +39,7 @@
{
'name': "odooAi Common Util and Tools,欧度智能基础核心优化",
'version': '16.23.11.15',
'version': '16.23.11.24',
'author': 'odooai.cn',
'category': 'Base',
'website': 'https://www.odooai.cn',

View File

@@ -115,6 +115,7 @@ class Base(models.AbstractModel):
'name': file_name,
'website_id': False,
})
attachment.generate_access_token()
return attachment
else:
return False
@@ -128,6 +129,7 @@ class Base(models.AbstractModel):
'name': file_name,
'website_id': False,
})
attachment.generate_access_token()
return attachment
else:
return False