Skip to Content
Menu
This question has been flagged
1 Atsakyti
3341 Rodiniai

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

Portretas
Atmesti
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"
Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
vas. 25
1666
2
gruod. 24
2689
0
lapkr. 24
3074
3
geg. 24
4940
0
saus. 25
2830