feature/odoo18 #2

Merged
administrator merged 43 commits from feature/odoo18 into develop 2025-05-22 16:16:43 +05:30
1 changed files with 4 additions and 2 deletions
Showing only changes of commit 880d25e4eb - Show all commits

View File

@ -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