Here is the field which I want to mask to the others
'planned_revenue': fields.float('Expected Revenue', track_visibility='always'),
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Here is the field which I want to mask to the others
'planned_revenue': fields.float('Expected Revenue', track_visibility='always'),
I put the groups on a view that I inherited the CRM module. Can you tell me what does not work?
<record model="ir.ui.view" id="crm_case_kanban_view_leads_inherit">
<field name="name">CRM - Leads Kanban Inherit</field>
<field name="model">crm.lead</field>
<field name="inherit_id" ref="crm.crm_case_kanban_view_leads"/>
<field name="arch" type="xml">
<xpath expr="//div[@class='oe_kanban_content']/div" position="replace">
<div groups="base.group_user">
<b><field name="name"/></b>
<t t-if="record.planned_revenue.raw_value">
- <i><t t-esc="record.planned_revenue.value"/>
<field name="company_currency"/></i>
</t>
</div>
</xpath>
</field>
</record>
Put the groups in the field (view element tags) not HTML tags.
I can hide for evrybody with groups="group_no_one" on a field, but when I use groups="group_user" for a single user none effect.
If what you mean is base.group_user, it is a group that is used for Employees. So, I imagine that most users will belongs to that group and can view that field. If you want that field to be visible to only certain user, then create a group first, assign the users that should have access to this group, and add this group to the groups attribute.
Made it is a field owner whom I want to create, It is accessible to nobody except that who has him to create.
You can use groups in that fields to limit the access to the field. Groups can be added in the fields definition (you need to inherit the model) or in the view definition (you need to inherit the view).