Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
3192 Vistas

I added chatter to \view.users.form. Why does not it work?
AttributeError: type object 'res.users' has no attribute 'message_post'

Avatar
Descartar
Mejor respuesta

You need to inherit res.users model and inherit mail.thread and mail.activity.mixin

from odoo import api, fields, models, _

class ResUsers(models.Model):
    _inherit = ["res.users", "mail.thread", "mail.activity.mixin"]
_name = "res.users"
Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
feb 25
1416
2
dic 24
2405
0
nov 24
1155
3
may 24
4593
0
ene 25
2622