Hi everyone,
I'd like to create a custom view on recruitment model. And I want to hide some fields (and label) for a certain groups. Can I make it with xml?
The original view is:
<record model="ir.ui.view" id="crm_case_form_view_job">
.....
<group string="Contract">
<label for="salary_expected"/>
<div>
<field name="salary_expected" class="oe_inline"/>
<span class="oe_inline" attrs="{'invisible':[('salary_expected_extra','=',False)]}"> + </span>
<field name="salary_expected_extra" class="oe_inline" placeholder="Extra advantages..."/>
</div>
<label for="salary_proposed"/>
<div>
<field name="salary_proposed" class="oe_inline"/>
<span class="oe_inline" attrs="{'invisible':[('salary_proposed_extra','=',False)]}"> + </span>
<field name="salary_proposed_extra" class="oe_inline" placeholder="Extra advantages..."/>
</div>
<field name="availability"/>
<field name="emp_id" invisible="1"/>
</group>
</record>
I want to hide the "salary_expected" and the label from group "group_hr_recruitment_user".
How can I do that?
Thank so much.