5 <record model="ir.ui.view" id="view_account_asset_category_form">
6 <field name="name">account.asset.category.form</field>
7 <field name="model">account.asset.category</field>
8 <field name="type">form</field>
9 <field name="arch" type="xml">
10 <form string="Asset category">
11 <field name="name" select="1"/>
12 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
13 <separator string="Accounting information" colspan="4" />
14 <field name="journal_id"/>
15 <field name="account_asset_id" on_change="onchange_account_asset(account_asset_id)"/>
16 <field name="account_depreciation_id"/>
17 <field name="account_expense_depreciation_id"/>
18 <group colspan="2" col="2">
19 <separator string="Depreciation Dates" colspan="2" />
20 <field name="method_time"/>
21 <field name="method_delay" attrs="{'invisible':[('method_time','=','end')]}"/>
22 <field name="method_period"/>
23 <field name="method_end" attrs="{'required': [('method_time','=','end')], 'invisible':[('method_time','=','delay')]}"/>
25 <group colspan="2" col="2">
26 <separator string="Depreciation Method" colspan="2" />
27 <field name="method"/>
28 <field name="method_progress_factor" attrs="{'invisible':[('method','=','linear')]}"/>
29 <field name="prorata"/>
30 <field name="open_asset"/>
32 <group col="2" colspan="2" groups="analytic.group_analytic_accounting">
33 <separator string="Analytic information" colspan="4" />
35 <field name="account_analytic_id" />
37 <separator string="Notes" colspan="4"/>
38 <field name="note" colspan="4" nolabel="1"/>
43 <record model="ir.ui.view" id="view_account_asset_category_tree">
44 <field name="name">account.asset.category.tree</field>
45 <field name="model">account.asset.category</field>
46 <field name="type">tree</field>
47 <field name="arch" type="xml">
48 <tree string="Asset category">
50 <field name="method_time"/>
51 <field name="method_delay"/>
52 <field name="method"/>
53 <field name="journal_id"/>
54 <field name="account_asset_id"/>
55 <field name="account_expense_depreciation_id"/>
56 <field name="company_id" groups="base.group_multi_company"/>
61 <record model="ir.ui.view" id="view_account_asset_category_search">
62 <field name="name">account.asset.category.search</field>
63 <field name="model">account.asset.category</field>
64 <field name="type">search</field>
65 <field name="arch" type="xml">
66 <search string="Search Asset Category">
68 <field name="journal_id"/>
73 <record model="ir.ui.view" id="view_account_asset_asset_form">
74 <field name="name">account.asset.asset.form</field>
75 <field name="model">account.asset.asset</field>
76 <field name="type">form</field>
77 <field name="arch" type="xml">
79 <group col="6" colspan="4">
80 <field name="name" select="1"/>
81 <field name="category_id" select="1" on_change="onchange_category_id(category_id)"/>
82 <field name="code" select="1"/>
83 <field name="purchase_value" select="1"/>
84 <field name="salvage_value"/>
85 <field name="value_residual"/>
86 <field name="currency_id" select="1"/>
87 <field name="company_id" select="1" widget="selection" groups="base.group_multi_company"/>
89 <notebook colspan="4">
90 <page string="Depreciation">
91 <separator string="Other Information" colspan="4"/>
92 <field name="partner_id"/>
93 <field name="purchase_date"/>
94 <group colspan="2" col="2">
95 <separator string="Depreciation Dates" colspan="2" />
97 name="%(wizard_asset_modify)d"
99 string="Change duration"
103 <field name="method_time" on_change="onchange_method_time(method_time)"/>
104 <field name="method_delay" attrs="{'invisible':[('method_time','=','end')]}"/>
105 <field name="method_period"/>
106 <field name="method_end" attrs="{'required': [('method_time','=','end')], 'invisible':[('method_time','=','delay')]}"/>
108 <group colspan="2" col="2">
109 <separator string="Depreciation Method" colspan="2" />
110 <field name="method" on_change="onchange_method_time(method)"/>
111 <field name="method_progress_factor" attrs="{'invisible':[('method','=','linear')]}"/>
112 <field name="prorata" attrs="{'invisible': ['|',('method_time','=','end'),('method','!=','linear')]}"/>
116 <page string="Depreciation board">
117 <field name="depreciation_line_ids" colspan="4" nolabel="1" mode="tree,graph" >
118 <tree string="Depreciation Lines" colors="blue:(move_check == False);black:(move_check == True)">
119 <field name="depreciation_date"/>
120 <field name="sequence" invisible="1"/>
121 <field name="depreciated_value" readonly="1"/>
122 <field name="amount"/>
123 <field name="remaining_value" readonly="1"/>
124 <field name="move_check"/>
125 <button name="create_move" attrs="{'invisible':[('move_check','!=',False)]}" icon="gtk-execute" string="Create Move" type="object"/>
129 <field name="amount"/>
130 <field name="depreciated_value"/>
133 <button type="object" name="compute_depreciation_board" string="Compute" icon="terp-stock_format-scientific" colspan="2"/>
135 <page string="History">
136 <field name="account_move_line_ids" colspan="4" nolabel="1" readonly="1"/>
137 <field name="history_ids" colspan="4" nolabel="1" readonly="1"/>
139 <page string="Notes">
140 <field name="note" nolabel="1"/>
143 <field name="state" readonly="1"/>
144 <group colspan="2" col="2">
145 <button name="validate" states="draft" string="Confirm asset" type="object"/>
151 <record model="ir.ui.view" id="view_account_asset_history_form">
152 <field name="name">account.asset.history.form</field>
153 <field name="model">account.asset.history</field>
154 <field name="type">form</field>
155 <field name="arch" type="xml">
156 <form string="Asset history">
157 <field name="name" select="1"/>
158 <field name="date" select="1"/>
159 <field name="user_id" select="1"/>
160 <field name="method_delay" select="2"/>
161 <field name="method_period"/>
162 <field name="method_end"/>
163 <separator string="Notes" colspan="4"/>
164 <field name="note" colspan="4" nolabel="1"/>
169 <record model="ir.ui.view" id="view_account_asset_history_tree">
170 <field name="name">account.asset.history.tree</field>
171 <field name="model">account.asset.history</field>
172 <field name="type">tree</field>
173 <field name="arch" type="xml">
174 <tree string="Asset history">
175 <field name="date" select="1"/>
176 <field name="name" select="1"/>
177 <field name="user_id" select="1"/>
178 <field name="method_delay" select="2"/>
179 <field name="method_period"/>
180 <field name="method_end"/>
186 <record model="ir.ui.view" id="view_account_asset_asset_tree">
187 <field name="name">account.asset.asset.tree</field>
188 <field name="model">account.asset.asset</field>
189 <field name="type">tree</field>
190 <field name="field_parent">child_ids</field>
191 <field name="arch" type="xml">
192 <tree string="Assets">
195 <field name="purchase_date"/>
196 <field name="company_id" groups="base.group_multi_company"/>
197 <field name="state"/>
202 <record model="ir.actions.act_window" id="action_account_asset_asset_tree">
203 <field name="name">Asset Hierarchy</field>
204 <field name="res_model">account.asset.asset</field>
205 <field name="view_type">tree</field>
206 <field name="domain">[('parent_id','=',False)]</field>
207 <field name="view_id" ref="view_account_asset_asset_tree"/>
210 <menuitem id="menu_finance_assets" name="Assets" parent="account.menu_finance"/>
212 parent="menu_finance_assets"
213 id="menu_action_account_asset_asset_tree"
214 action="action_account_asset_asset_tree"/>
215 <record model="ir.actions.act_window" id="action_account_asset_asset_form">
216 <field name="name">Assets</field>
217 <field name="res_model">account.asset.asset</field>
218 <field name="view_type">form</field>
222 parent="menu_finance_assets"
223 id="menu_action_account_asset_asset_form"
224 action="action_account_asset_asset_form"/>
226 <menuitem id="menu_finance_config_assets" name="Assets" parent="account.menu_finance_accounting"/>
227 <record model="ir.actions.act_window" id="action_account_asset_asset_list_normal">
228 <field name="name">Asset Categories</field>
229 <field name="res_model">account.asset.category</field>
230 <field name="view_type">form</field>
231 <field name="view_mode">tree,form</field>
235 parent="menu_finance_config_assets"
236 id="menu_action_account_asset_asset_list_normal"
237 action="action_account_asset_asset_list_normal"/>