Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
3194 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
1418
2
dic 24
2410
0
nov 24
1170
3
may 24
4601
0
ene 25
2629