-
Notifications
You must be signed in to change notification settings - Fork 59
/
views.xml
34 lines (31 loc) · 1.3 KB
/
views.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<odoo>
<data>
<record id="view_expenses_tree_custom" model="ir.ui.view">
<field name="name">hr.expense.tree.custom</field>
<field name="model">hr.expense</field>
<field name="inherit_id" ref="hr_expense.view_expenses_tree"/>
<field name="arch" type="xml">
<field name="date" position="after">
<!-- <field name="test_field" groups="product.group_sale_pricelist" readonly="1"/> -->
<field name="test_field"/>
</field>
<!-- xpath the same result -->
<!--views/views.xml
<xpath expr="//field[@name='date']" position="after">
<field name="test_field" />
</xpath>
-->
</field>
</record>
<record id="hr_expense_view_form_custom" model="ir.ui.view">
<field name="name">hr.expense.view.form.custom</field>
<field name="model">hr.expense</field>
<field name="inherit_id" ref="hr_expense.hr_expense_view_form"/>
<field name="arch" type="xml">
<field name="employee_id" position="after">
<field name="test_field"/>
</field>
</field>
</record>
</data>
</odoo>