[MOD] save_file field has been modified to be attachment + attachments preview widget added to field
This commit is contained in:
parent
18b97b3ca3
commit
3dc2fee494
|
|
@ -80,7 +80,7 @@ class AttachmentRule(models.Model):
|
|||
default=lambda self: self._default_employee_id(), readonly="True")
|
||||
entity_id = fields.Many2one(comodel_name='cm.entity', string='Unit Responsible', related='employee_id.parent_id',
|
||||
store=True)
|
||||
file_save = fields.Binary('Save File')
|
||||
file_save = fields.Many2many('ir.attachment', String="Save File")
|
||||
external_drive_link = fields.Text('External Drive Link')
|
||||
attachment_filename = fields.Char(string="Attachment Filename")
|
||||
incoming_transaction_id = fields.Many2one(comodel_name='incoming.transaction', string='Incoming Transaction')
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@
|
|||
<field name="entity_id" readonly="True"/>
|
||||
<field name="date" readonly="True"/>
|
||||
<field name="description" required="False"/>
|
||||
<field name="file_save" filename="attachment_filename"/>
|
||||
<field name="file_save" filename="attachment_filename" widget="many2many_attachment_preview"/>
|
||||
<field name="external_drive_link" widget="url"/>
|
||||
<field name="attachment_filename" invisible="True"/>
|
||||
</tree>
|
||||
|
|
@ -233,7 +233,7 @@
|
|||
<field name="entity_id" readonly="True"/>
|
||||
<field name="date" readonly="True"/>
|
||||
<field name="description" required="False"/>
|
||||
<field name="file_save" filename="attachment_filename"/>
|
||||
<field name="file_save" filename="attachment_filename" widget="many2many_attachment_preview"/>
|
||||
<field name="external_drive_link" widget="url"/>
|
||||
<field name="attachment_filename" invisible="True"/>
|
||||
</tree>
|
||||
|
|
@ -345,7 +345,7 @@
|
|||
<field name="entity_id" readonly="True"/>
|
||||
<field name="date" readonly="True"/>
|
||||
<field name="description" required="False"/>
|
||||
<field name="file_save" filename="attachment_filename"/>
|
||||
<field name="file_save" filename="attachment_filename" widget="many2many_attachment_preview"/>
|
||||
<field name="external_drive_link" widget="url"/>
|
||||
<field name="attachment_filename" invisible="True"/>
|
||||
</tree>
|
||||
|
|
|
|||
Loading…
Reference in New Issue