Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
3305 Переглядів

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

Аватар
Відмінити
Найкраща відповідь

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"
Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
лют. 25
1623
2
груд. 24
2643
0
лист. 24
2920
3
трав. 24
4866
0
січ. 25
2800