Hello Community,
How to hide message_follower_ids from particular group , I've tried to make <div class="oe_chatter" > invisible , and add groups to message_follower_ids still message_follower_ids appears ?
Thanks you.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello Community,
How to hide message_follower_ids from particular group , I've tried to make <div class="oe_chatter" > invisible , and add groups to message_follower_ids still message_follower_ids appears ?
Thanks you.
Hi,
you might not 'hide' a field for a group, but you might only name allowed group. Thus, in the field 'message_follower_ids' indicate allowed groups (e.g. if is done to restrict portal users, put there 'base.group_user').
If you can't specify all the groups, which are allowed to access a field, try to prepare different xmlform views, and indicate to which groups this view should be applied. Find the example in /hr_timesheet/views/project_views.xml:
<record model="ir.ui.view" id="view_task_form2_inherited"> <field name="name">project.task.form.inherited</field> <field name="model">project.task</field> <field name="inherit_id" ref="project.view_task_form2"/> <field name="groups_id" eval="[(6,0, (ref('hr_timesheet.group_hr_timesheet_user'),))]"/>
<field name="arch" type="xml"> …
This form would be applied only to a group 'hr_timesheet.group_hr_timesheet_user'. Thus, you might replace/hide a certain field for this group like:
<field name='message_follower_ids' position='attributes'>
<attribute name='invisible'>1</attribute>
</field>
This update would be applied for all members of this groups and its heritors.
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 | |
---|---|---|---|---|
|
2
thg 6 25
|
1366 | ||
|
0
thg 4 25
|
3082 | ||
|
0
thg 1 20
|
4094 | ||
Message in chatter
Đã xử lý
|
|
1
thg 11 19
|
8049 | |
|
3
thg 11 18
|
7741 |