forked from OCA/account-financial-tools
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathaccount_asset_profile.xml
148 lines (148 loc) · 6.77 KB
/
account_asset_profile.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="account_asset_profile_view_form" model="ir.ui.view">
<field name="name">account.asset.profile.form</field>
<field name="model">account.asset.profile</field>
<field name="arch" type="xml">
<form string="Asset profile">
<sheet>
<widget
name="web_ribbon"
title="Archived"
bg_color="bg-danger"
invisible="active"
/>
<div class="oe_title">
<label for="name" class="oe_edit_only" />
<h1>
<field name="name" />
</h1>
</div>
<group>
<group>
<label for="salvage_value" />
<div>
<field
name="salvage_value"
class="oe_inline"
nolabel="1"
/>
<span
class="o_form_label oe_inline"
invisible="salvage_type != 'percent'"
>%</span>
</div>
<field
name="salvage_type"
required="salvage_value != 0.0"
/>
<field name="company_id" invisible="1" />
<field name="group_ids" widget="many2many_tags" />
<field name="asset_product_item" />
<field name="active" invisible="1" />
<field
name="company_id"
widget="selection"
groups="base.group_multi_company"
/>
</group>
<group>
<field name="journal_id" />
<field name="account_asset_id" />
<field name="account_depreciation_id" />
<field name="account_expense_depreciation_id" />
<field name="account_plus_value_id" />
<field name="account_min_value_id" />
<field name="account_residual_value_id" />
<field name="allow_reversal" />
</group>
<group string="Depreciation Dates">
<field name="method_time" />
<field
name="method_number"
invisible="method_time not in ['number', 'year']"
required="method_time in ['number', 'year']"
/>
<field name="method_period" />
<field name="days_calc" />
<field name="use_leap_years" invisible="days_calc" />
</group>
<group string="Depreciation Method">
<field name="method" />
<field
name="method_progress_factor"
invisible="method in ['linear', 'linear-limit']"
required="method in ['degressive', 'degr-linear', 'degr-limit']"
/>
<field name="prorata" readonly="method_time != 'year'" />
<field name="open_asset" />
</group>
<group
groups="analytic.group_analytic_accounting"
string="Analytic Information"
>
<field
name="analytic_distribution"
widget="analytic_distribution"
/>
</group>
</group>
<separator string="Notes" />
<field name="note" />
</sheet>
</form>
</field>
</record>
<record id="account_asset_profile_view_tree" model="ir.ui.view">
<field name="name">account.asset.profile.tree</field>
<field name="model">account.asset.profile</field>
<field name="arch" type="xml">
<tree>
<field name="name" />
<field name="method_number" optional="hide" />
<field name="method_period" optional="hide" />
<field name="journal_id" optional="show" />
<field name="account_asset_id" optional="hide" />
<field name="account_depreciation_id" optional="hide" />
<field name="account_expense_depreciation_id" optional="hide" />
<field name="account_plus_value_id" optional="hide" />
<field name="account_min_value_id" optional="hide" />
<field name="method" optional="show" />
<field name="prorata" optional="hide" />
<field
name="company_id"
groups="base.group_multi_company"
optional="show"
/>
</tree>
</field>
</record>
<record id="account_asset_profile_view_search" model="ir.ui.view">
<field name="name">account.asset.profile.search</field>
<field name="model">account.asset.profile</field>
<field name="arch" type="xml">
<search string="Search Asset Profile">
<field name="name" string="Asset Profile" />
<field name="journal_id" />
<separator />
<filter
string="Archived"
name="inactive"
domain="[('active', '=', False)]"
/>
<group name="groupby">
<filter
name="method_groupby"
string="Computation Method"
context="{'group_by': 'method'}"
/>
</group>
</search>
</field>
</record>
<record id="account_asset_profile_action" model="ir.actions.act_window">
<field name="name">Asset Profiles</field>
<field name="res_model">account.asset.profile</field>
<field name="view_mode">tree,form</field>
</record>
</odoo>