Ahsan Attari
Ahsan Attari

Reputation: 1079

Odoo- Hide field for multiple groups OR visible to multiple groups

e. The issue i am facing is that i need to show a field to multiple user groups. I know how to show field to one group

<field name="received_qty" groups="base.test_group" string="Total Received Quantity"/>

but i want to show this field to multiple groups (suppose :'base.group1','base.group2') and then it should be hidden from all other groups which are not listed here

Upvotes: 3

Views: 4300

Answers (1)

Bhavesh Odedra
Bhavesh Odedra

Reputation: 11143

Using , operator we can give groups name in field as many as we want.

For example:

groups="base.test_group,base.test_group1,base.test_group2"

It's combination of module_name.xml_group_id. Field can be visible for those User who has group checked.

Upvotes: 5

Related Questions