[PORT] Odoo 20.0 compat pass: auto_install disables, ir.access.csv conversion, documents http/root/thread.cc/datas patches, trigger-dependency fixes
This commit is contained in:
1 parent
4d7ed91c27
commit
f2b6066ad3
1174 files changed
+2145
-2260
No files matched your search
@@ -36,7 +36,7 @@ def _sanitize_file_extension(extension):
|
||||
class DocumentsDocument(models.Model):
|
||||
_name = 'documents.document'
|
||||
_description = 'Document'
|
||||
_inherit = ['mail.thread.cc', 'mail.activity.mixin', 'mail.alias.mixin.optional']
|
||||
_inherit = ['mail.thread', 'mail.activity.mixin', 'mail.alias.mixin.optional']
|
||||
_mail_post_access = 'read'
|
||||
_order = 'sequence, id desc'
|
||||
_parent_name = 'folder_id'
|
||||
@@ -50,7 +50,7 @@ class DocumentsDocument(models.Model):
|
||||
is_editable_attachment = fields.Boolean(default=False, help='True if we can edit the link attachment.')
|
||||
is_multipage = fields.Boolean(
|
||||
'Is considered multipage', compute='_compute_is_multipage', store=True, readonly=False)
|
||||
datas = fields.Binary(related='attachment_id.datas', related_sudo=True, readonly=False, prefetch=False)
|
||||
datas = fields.Binary(related='attachment_id.raw', related_sudo=True, readonly=False, prefetch=False)
|
||||
raw = fields.Binary(related='attachment_id.raw', related_sudo=True, readonly=False, prefetch=False)
|
||||
file_extension = fields.Char('File Extension', copy=True, store=True, readonly=False,
|
||||
compute='_compute_file_extension', inverse='_inverse_file_extension')
|
||||
|
||||
Reference in new issue
Block a user