跳至內容
選單
此問題已被標幟
1 回覆
3263 瀏覽次數

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
1606
2
12月 24
2592
0
11月 24
2441
3
5月 24
4832
0
1月 25
2772