Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
3261 Prikazi

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

Avatar
Opusti
Best Answer

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
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
feb. 25
1606
2
dec. 24
2590
0
nov. 24
2436
3
maj 24
4832
0
jan. 25
2770