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,欧度智能基础核心优化", 'name': "odooAi Common Util and Tools,欧度智能基础核心优化",
'version': '16.23.11.15', 'version': '16.23.11.24',
'author': 'odooai.cn', 'author': 'odooai.cn',
'category': 'Base', 'category': 'Base',
'website': 'https://www.odooai.cn', 'website': 'https://www.odooai.cn',

View File

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