Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3498 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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> 

....

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 5 18
3737
2
thg 3 15
6120
0
thg 6 25
585
1
thg 2 24
2790
1
thg 7 18
6983