diff --git a/app_common/__manifest__.py b/app_common/__manifest__.py index 601c2c18..fbb3c337 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.12', + 'version': '16.23.11.15', '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 a248dabf..68572c0a 100644 --- a/app_common/models/base.py +++ b/app_common/models/base.py @@ -113,6 +113,7 @@ class Base(models.AbstractModel): attachment = self.env['ir.attachment'].create({ 'datas': image, 'name': file_name, + 'website_id': False, }) return attachment else: @@ -125,6 +126,7 @@ class Base(models.AbstractModel): attachment = self.env['ir.attachment'].create({ 'datas': image, 'name': file_name, + 'website_id': False, }) return attachment else: