コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3494 ビュー

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> 

....

アバター
破棄
関連投稿 返信 ビュー 活動
2
5月 18
3732
2
3月 15
6117
0
6月 25
580
1
2月 24
2789
1
7月 18
6980