attachment

This commit is contained in:
mohammed-alkhazrji 2025-12-15 12:48:16 +03:00
parent 36bead3afd
commit f4cb1fe456
1 changed files with 4 additions and 4 deletions

View File

@ -180,10 +180,10 @@ class AnnualPurchaseRequest(models.Model):
self.ensure_one() self.ensure_one()
Attachment = self.env['ir.attachment'] Attachment = self.env['ir.attachment']
domain = [
domain = ['|', ('res_model', '=', self._name),
'&', ('res_model', '=', self._name), ('res_id', 'in', self.ids) ('res_id', 'in', self.ids)
] ]
return { return {
'name': _("Documents"), 'name': _("Documents"),