Merge pull request #5735 from expsa/khazraji_annual

attachment
This commit is contained in:
mohammed-alkhazrji 2025-12-15 13:00:00 +03:00 committed by GitHub
commit 10198069ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

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