I added chatter to \view.users.form. Why does not it work?
AttributeError: type object 'res.users' has no attribute 'message_post'
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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 |