Merge pull request #877 from expsa/dev_odex25_transactions
Dev odex25 transactions
This commit is contained in:
commit
5467c34a63
|
|
@ -65,13 +65,14 @@ class ForwardTransactionWizard(models.TransientModel):
|
|||
'res_model': transaction._name, # ضع هنا اسم النموذج الذي تقوم بحفظ المرفق له
|
||||
'res_id': transaction.id, # المعرف المرتبط بالسجل الأساسي الذي تريد ربط المرفق به
|
||||
})
|
||||
transaction.attachment_rule_ids.create({
|
||||
'file_save': [(4, attachment.id)], # ربط المرفق الذي تم إنشاؤه
|
||||
# 'name': transaction.id,
|
||||
'description': self.att_description,
|
||||
'attachment_': self.filename,
|
||||
})
|
||||
# transaction.file_save = [(4, attachment.id)] # Link the created attachment
|
||||
# transaction.attachment_rule_ids.create({
|
||||
# 'file_save': [(4, attachment.id)], # ربط المرفق الذي تم إنشاؤه
|
||||
# # 'name': transaction.id,
|
||||
# 'description': self.att_description,
|
||||
# 'attachment_': self.filename,
|
||||
# })
|
||||
transaction.file_save = [(4, attachment.id)] # Link the created attachment
|
||||
print('transaction._name = ',transaction._name)
|
||||
|
||||
# Create trace record
|
||||
transaction.trace_ids.create({
|
||||
|
|
|
|||
Loading…
Reference in New Issue