Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged

Good afternoon.



I'm trying to send messages to an odoo chat via api.



models.execute_kw(db, uid, password, 'mail.message', 'create', [{

'model': 'mail.channel',

'moderation_status': 'accepted',

'subtype_id': 1,

'channel_ids': [12],

'res_id': 12,

'body': 'test',

'message_type': 'comment',

'author_id': 40806,

'author_avatar': False

}])



The message is saved, however the 'channel_ids' goes empty and the message does not appear in the channel.



Even trying to edit ('write') it won't.



Could anyone let me know how I can solve it?

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
maj 21
3177
4
jun. 22
24819
1
avg. 25
127
1
jun. 25
1192
1
jun. 25
835