Merge pull request #874 from expsa/fix_att

Update forward_trasaction.py
This commit is contained in:
zainab2097 2024-08-22 14:15:34 +03:00 committed by GitHub
commit b170ab64fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ class ForwardTransactionWizard(models.TransientModel):
'name': 'Forward Attachment',
'datas': self.forward_attachment_id,
'type': 'binary',
'res_model': 'cm.attachment.rule', # ضع هنا اسم النموذج الذي تقوم بحفظ المرفق له
'res_model': transaction._name, # ضع هنا اسم النموذج الذي تقوم بحفظ المرفق له
'res_id': transaction.id, # المعرف المرتبط بالسجل الأساسي الذي تريد ربط المرفق به
})
transaction.attachment_rule_ids.create({