Can a note in Odoo 17 be restricted to internal users only, excluding companies or any other contacts?
Further explanation:
I want to ensure that my users can only tag internal employees in the chatter and not companies or any other contacts.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Can a note in Odoo 17 be restricted to internal users only, excluding companies or any other contacts?
Further explanation:
I want to ensure that my users can only tag internal employees in the chatter and not companies or any other contacts.
From code side, Filters out portal users or external users then Link the user to their corresponding record (because Odoo stores partner info for both users and contacts).
class ResPartner(models.Model):
_inherit = 'res.partner'
def _message_partner_allowed(self):
""" Restrict @mention to only internal users (employees) """
internal_users = self.env['res.users'].search([('share', '=', False)])
return internal_users.mapped('partner_id')
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
Menu's with different default filter
Đã xử lý
|
|
1
thg 7 25
|
1170 | |
|
2
thg 3 25
|
1440 | ||
|
0
thg 2 25
|
1102 | ||
|
0
thg 2 25
|
1258 | ||
|
0
thg 2 25
|
1209 |