Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
3474 Prikazi

Hello Guys :D

Can anyone help me to make this block invisble through inheritance.

        <record id="hr_contract_form_inherit" model="ir.ui.view">

<field name="name">hr.contract.view.form.inherit</field>

<field name="model">hr.contract</field>

<field name="inherit_id" ref="hr_contract.hr_contract_view_form"/>

<field name="arch" type="xml">

<xpath expr="//group[@name='duration_group']" position="after">

<group string="Accounting">

<field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>

<field name="journal_id"/>

</group>

</xpath>

</field>

</record>

Thanks a lot in advance.

Avatar
Opusti
Best Answer

If you want to make the group "duration_group"  invisible you must use "replace", "after" is used to add a new group.

...

<field name="arch" type="xml">

<xpath expr="//group[@name='duration_group']" position="replace">

</xpath> 

....

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
2
maj 18
3721
2
mar. 15
6107
0
jun. 25
565
1
feb. 24
2773
1
jul. 18
6975