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:
- CRM
- e-Commerce
- Contabilidad
- Inventario
- PoS
- Project
- MRP
Se marcó esta pregunta
            
                3015
                
                    Vistas
                
            
        
    ¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Inscribirse| Publicaciones relacionadas | Respuestas | Vistas | Actividad | |
|---|---|---|---|---|
|  | 1 may 21  | 3599 | ||
|  | 4 jun 22  | 25633 | ||
|  | 1 ago 25  | 1052 | ||
|  | 1 jun 25  | 1835 | ||
|  | 1 jun 25  | 1688 | 
