forked from camptocamp/account-analytic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanalytic_view.xml
48 lines (44 loc) · 1.99 KB
/
analytic_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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="view_account_analytic_line_form" model="ir.ui.view">
<field name="name">account.analytic.line.form</field>
<field name="model">account.analytic.line</field>
<field name="inherit_id" ref="account.view_account_analytic_line_form"/>
<field name="arch" type="xml">
<xpath expr="//label[@for='amount_currency']/following-sibling::div[1]" position="after">
<label for="aa_amount_currency" groups="base.group_multi_currency"/>
<div groups="base.group_multi_currency">
<field name="aa_amount_currency" class="oe_inline"/>
<field name="aa_currency_id" class="oe_inline"/>
</div>
</xpath>
</field>
</record>
<record id="view_account_analytic_line_tree" model="ir.ui.view">
<field name="name">account.analytic.line.tree</field>
<field name="model">account.analytic.line</field>
<field name="inherit_id" ref="account.view_account_analytic_line_tree"/>
<field name="arch" type="xml">
<field name="amount" position="after">
<field name="aa_amount_currency" sum="Total in Currency"/>
<field name="aa_currency_id" />
</field>
</field>
</record>
<record id="account_analytic_line_extended_form" model="ir.ui.view">
<field name="name">account.analytic.line.extended_form</field>
<field name="model">account.analytic.line</field>
<field name="inherit_id" ref="account.account_analytic_line_extended_form"/>
<field name="arch" type="xml">
<xpath expr="//label[@for='amount_currency']/following-sibling::div[1]" position="after">
<label for="aa_amount_currency" groups="base.group_multi_currency"/>
<div groups="base.group_multi_currency">
<field name="aa_amount_currency" class="oe_inline"/>
<field name="aa_currency_id" class="oe_inline"/>
</div>
</xpath>
</field>
</record>
</data>
</openerp>