fix bug in entity field

This commit is contained in:
esraa 2024-11-24 18:48:40 +02:00
parent 40cf75d336
commit 2d1b472397
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ class AttachmentRule(models.Model):
name = fields.Char() name = fields.Char()
employee_id = fields.Many2one(comodel_name='cm.entity', string='Created By', employee_id = fields.Many2one(comodel_name='cm.entity', string='Created By',
default=lambda self: self._default_employee_id(), readonly="True") default=lambda self: self._default_employee_id(), readonly="True")
entity_id = fields.Many2one(comodel_name='cm.entity', string='Unit Responsible', related='preparation_id.manager_id', entity_id = fields.Many2one(comodel_name='cm.entity', string='Unit Responsible', related='internal_transaction_id.preparation_id.manager_id',
store=True) store=True)
file_save = fields.Many2many('ir.attachment', String="Save File") file_save = fields.Many2many('ir.attachment', String="Save File")
external_drive_link = fields.Text('External Drive Link') external_drive_link = fields.Text('External Drive Link')