From 52baa9b8ddd1fc4cff6555203d3a841a3a80a387 Mon Sep 17 00:00:00 2001 From: Chill Date: Fri, 24 Nov 2023 15:11:48 +0800 Subject: [PATCH] =?UTF-8?q?fix=20#I8J7H1=20[app=5Fcommon][app=5Fai=5Fmedia?= =?UTF-8?q?]=20=E5=A4=84=E7=90=86=E5=9B=BE=E7=89=87=E9=99=84=E4=BB=B6acces?= =?UTF-8?q?s=5Ftoken?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app_common/__manifest__.py | 2 +- app_common/models/base.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app_common/__manifest__.py b/app_common/__manifest__.py index fbb3c337..3e09817e 100644 --- a/app_common/__manifest__.py +++ b/app_common/__manifest__.py @@ -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', diff --git a/app_common/models/base.py b/app_common/models/base.py index 68572c0a..14f8f7b6 100644 --- a/app_common/models/base.py +++ b/app_common/models/base.py @@ -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