Merge pull request #874 from expsa/fix_att
Update forward_trasaction.py
This commit is contained in:
commit
b170ab64fa
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Reference in New Issue