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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- सीआरएम
- e-Commerce
- लेखांकन
- इन्वेंटरी
- PoS
- Project
- MRP
This question has been flagged
2449
Views
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
मई 21
|
3169 | ||
|
4
जून 22
|
24776 | ||
|
1
जून 25
|
1179 | ||
|
1
जून 25
|
799 | ||
|
1
जून 25
|
2434 |