Discuss Update
This commit is contained in:
parent
dc792473fe
commit
880d25e4eb
|
|
@ -27,9 +27,11 @@ class DiscussChannel(models.Model):
|
||||||
'res_id': rec.id,
|
'res_id': rec.id,
|
||||||
})
|
})
|
||||||
files.append(file.id)
|
files.append(file.id)
|
||||||
rec.message_post(
|
msg = rec.message_post(
|
||||||
body=leave_request_data['body'],
|
body=leave_request_data['body'],
|
||||||
message_type="comment",
|
message_type="comment",
|
||||||
subtype_xmlid="mail.mt_comment",
|
subtype_xmlid="mail.mt_comment",
|
||||||
attachment_ids=files # ✅ correct way to pass existing attachments
|
attachment_ids=files # ✅ correct way to pass existing attachments
|
||||||
)
|
)
|
||||||
|
return msg.id
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue