Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
3338 Visninger

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

Avatar
Kassér
Bedste svar

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
feb. 25
1662
2
dec. 24
2679
0
nov. 24
3065
3
maj 24
4930
0
jan. 25
2826