跳至内容
菜单
此问题已终结
1 回复
3230 查看

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"
形象
丢弃
相关帖文 回复 查看 活动
1
2月 25
1531
2
12月 24
2505
0
11月 24
1599
3
5月 24
4733
0
1月 25
2695