user_odoo
user_odoo

Reputation: 2358

Odoo9 hide fields for simple user

How hide field Assigned to for simple user etc. Project > Task (Assigned to)?

Administrator can see this fields!

Upvotes: 0

Views: 93

Answers (1)

Bhavesh Odedra
Bhavesh Odedra

Reputation: 11141

You should need to understand basic concept of security mechanism of Odoo.

Follow below steps:

  1. Create security group
  2. Give access right to specific Users

For example:

<record id="field_invisible_from_others" model="res.groups">
    <field name="name">Only Admin can see</field>
    <field name="users" eval="[(4, ref('base.user_root'))]"/>
</record>
  1. Add group to your field

For example:

<field name="field" groups="module_name.field_invisible_from_others">

Refer more details of Security in Odoo.

Upvotes: 1

Related Questions