forked from acsone/account-financial-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
account_asset_demo.xml
105 lines (92 loc) · 3.97 KB
/
account_asset_demo.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?xml version="1.0" ?>
<openerp>
<data noupdate="1">
<!--
Type View Assets
-->
<record id="account_asset_view_fa" model="account.asset.asset">
<field name="type">view</field>
<field name="state">open</field>
<field name="name">Financial Assets</field>
<field name="purchase_value" eval="0.0"/>
</record>
<record id="account_asset_view_ict" model="account.asset.asset">
<field name="type">view</field>
<field name="state">open</field>
<field name="name">ICT</field>
<field name="parent_id" ref="account_asset_view_fa"/>
<field name="purchase_value" eval="0.0"/>
</record>
<record id="account_asset_view_vehicle" model="account.asset.asset">
<field name="type">view</field>
<field name="state">open</field>
<field name="name">Vehicles</field>
<field name="parent_id" ref="account_asset_view_fa"/>
<field name="purchase_value" eval="0.0"/>
</record>
<!--
Asset Category Demo
-->
<record id="account_asset_category_ict_3Y" model="account.asset.category">
<field name="parent_id" ref="account_asset_view_ict"/>
<field name="account_expense_depreciation_id" ref="account.a_expense"/>
<field name="account_asset_id" ref="account.xfa"/>
<field name="account_depreciation_id" ref="account.xfa"/>
<field name="journal_id" ref="account.expenses_journal"/>
<field name="name">Hardware - 3 Years</field>
<field name="method_time">year</field>
<field name="method_number" eval="3"/>
<field name="method_period">year</field>
</record>
<record id="account_asset_category_car_5Y" model="account.asset.category">
<field name="parent_id" ref="account_asset_view_vehicle"/>
<field name="account_expense_depreciation_id" ref="account.a_expense"/>
<field name="account_asset_id" ref="account.xfa"/>
<field name="account_depreciation_id" ref="account.xfa"/>
<field name="journal_id" ref="account.expenses_journal"/>
<field name="name">Cars - 5 Years</field>
<field name="method_time">year</field>
<field name="method_number" eval="5"/>
<field name="method_period">year</field>
</record>
<!--
To DO:
move deferred revenue/income to a separate
account_deferral module
<record id="account_asset_category_sale" model="account.asset.category">
<field name="account_expense_depreciation_id" ref="account.a_sale"/>
<field name="account_asset_id" ref="account.xfa"/>
<field name="account_depreciation_id" ref="account.xfa"/>
<field name="journal_id" ref="account.expenses_journal"/>
<field name="name">Revenue Recognition Maintenance Contract - 3 Years</field>
<field name="method_number">3</field>
</record>
-->
<!--
Assets Demo
-->
<record id="account_asset_asset_ict0" model="account.asset.asset">
<field name="parent_id" ref="account_asset_view_ict"/>
<field name="state">draft</field>
<field name="method_time">year</field>
<field name="method_number" eval="3"/>
<field name="method_period">year</field>
<field name="date_start" eval="time.strftime('%Y-01-01')"/>
<field name="name">Laptop</field>
<field name="code">PI00101</field>
<field name="purchase_value" eval="1500.0"/>
<field name="category_id" ref="account_asset_category_ict_3Y"/>
</record>
<record id="account_asset_asset_vehicle0" model="account.asset.asset">
<field name="parent_id" ref="account_asset_view_vehicle"/>
<field name="state">draft</field>
<field name="method_time">year</field>
<field name="method_number" eval="5"/>
<field name="method_period">year</field>
<field name="name">CEO's Car</field>
<field name="purchase_value" eval="12000.0"/>
<field name="salvage_value" eval="2000.0"/>
<field name="category_id" ref="account_asset_category_car_5Y"/>
</record>
</data>
</openerp>