Merge pull request #875 from expsa/dev_odex25_transactions
Dev odex25 transactions
This commit is contained in:
commit
2f37fe2452
|
|
@ -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