/
model_view.xml
26 lines (24 loc) · 982 Bytes
/
model_view.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
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="view_model_form" model="ir.ui.view">
<field name="name">view.model.form</field>
<field name="model">test.model</field>
<field name="arch" type="xml">
<form string="Test model">
<field name="name"/>
<xpath expr="//div[contains(text(), 'Translatable String')]/more/path" position="attributes">
<attribute name="t-if">o.value</attribute>
</xpath>
<xpath expr="//span[@t-esc='o.amount_to_text()']/.." position="after">
<attribute name="t-if">o.value</attribute>
</xpath>
</form>
</field>
</record>
<!-- Record without "id" -->
<record model="ir.ui.view"/>
<!-- Also no "id" -->
<record id="" model="ir.ui.view"/>
</data>
</openerp>