#I9DAQT image2attachment show in select in media

This commit is contained in:
Chill
2024-04-18 14:44:17 +08:00
parent 0d01772ca1
commit 20df344078
2 changed files with 5 additions and 1 deletions

View File

@@ -126,6 +126,8 @@ class Base(models.AbstractModel):
'datas': image,
'name': file_name,
'website_id': False,
'res_model': self._name,
'res_id': self.id,
})
attachment.generate_access_token()
return attachment
@@ -146,6 +148,8 @@ class Base(models.AbstractModel):
'datas': image,
'name': file_name,
'website_id': False,
'res_model': self._name,
'res_id': self.id,
})
attachment.generate_access_token()
return attachment