forked from OCA/account-financial-tools
-
Notifications
You must be signed in to change notification settings - Fork 3
/
account_view.xml
65 lines (60 loc) · 2.73 KB
/
account_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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?xml version="1.0"?>
<openerp>
<data>
<record model="ir.ui.view" id="view_account_asset_form">
<field name="name">account.asset.form</field>
<field name="model">account.account</field>
<field name="inherit_id" ref="account.view_account_form"/>
<field name="arch" type="xml">
<field name="active" position="before">
<field name="asset_category_id"/>
</field>
</field>
</record>
<record id="view_account_move_line_form_inherit" model="ir.ui.view">
<field name="name">Journal Items (form)</field>
<field name="model">account.move.line</field>
<field name="inherit_id" ref="account.view_move_line_form"/>
<field name="arch" type="xml">
<field name="statement_id" position="after">
<field name="asset_category_id"/>
<field name="asset_id"/>
</field>
</field>
</record>
<record id="view_account_move_line_filter_inherit" model="ir.ui.view">
<field name="name">Journal Items (Search)</field>
<field name="model">account.move.line</field>
<field name="inherit_id" ref="account.view_account_move_line_filter"/>
<field name="arch" type="xml">
<field name="account_id" position="after">
<field name="asset_id"/>
</field>
</field>
</record>
<record model="ir.ui.view" id="view_account_move_asset_form">
<field name="name">account.move.asset.form</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_move_form"/>
<field name="arch" type="xml">
<xpath expr="//notebook/page[@string='Journal Items']/field[@name='line_id']/form/notebook/page[@string='Information']//field[@name='account_id']" position="attributes">
<attribute name="on_change">onchange_account_id(account_id)</attribute>
</xpath>
<xpath expr="//notebook/page[@string='Journal Items']/field[@name='line_id']/form/notebook/page[@string='Information']/separator[@string='Internal Note']" position="before">
<group col="2" colspan="2">
<separator colspan="2" string="Asset"/>
<field name="asset_category_id"/>
<field name="asset_id"/>
</group>
</xpath>
<xpath expr="//notebook/page[@string='Journal Items']/field[@name='line_id']/tree/field[@name='account_id']" position="attributes">
<attribute name="on_change">onchange_account_id(account_id)</attribute>
</xpath>
<xpath expr="//notebook/page[@string='Journal Items']/field[@name='line_id']/tree/field[@name='state']" position="before">
<field name="asset_category_id"/>
<field name="asset_id"/>
</xpath>
</field>
</record>
</data>
</openerp>