Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
3504 Переглядів

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.

Аватар
Відмінити
Найкраща відповідь

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> 

....

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
трав. 18
3740
How to inherit class ? Вирішено
2
бер. 15
6122
0
черв. 25
587
1
лют. 24
2793
1
лип. 18
6983