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