Odoo Help


ODOO9: HOW to make a block invisible through inheritance

Vale Trood
on 5/2/16, 9:23 AM 599 views

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"/>





Thanks a lot in advance.

Mohamed Essakali
On 5/2/16, 5:35 PM

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">



About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 5/2/16, 9:23 AM
Seen: 599 times
Last updated: 5/3/16, 5:48 AM