|
@ -26,10 +26,10 @@ class IrAttachmentMetadata(models.Model): |
|
|
'ir.attachment', required=True, ondelete='cascade', |
|
|
'ir.attachment', required=True, ondelete='cascade', |
|
|
help="Link to ir.attachment model ") |
|
|
help="Link to ir.attachment model ") |
|
|
file_type = fields.Selection( |
|
|
file_type = fields.Selection( |
|
|
selection="_get_file_type", |
|
|
|
|
|
string="File type", |
|
|
|
|
|
help="The file type determines an import method to be used " |
|
|
|
|
|
"to parse and transform data before their import in ERP") |
|
|
|
|
|
|
|
|
selection="_get_file_type", |
|
|
|
|
|
string="File type", |
|
|
|
|
|
help="The file type determines an import method to be used " |
|
|
|
|
|
"to parse and transform data before their import in ERP") |
|
|
|
|
|
|
|
|
@api.depends('datas', 'external_hash') |
|
|
@api.depends('datas', 'external_hash') |
|
|
def _compute_hash(self): |
|
|
def _compute_hash(self): |
|
|