1 <?xml version="1.0" encoding="utf-8"?>
5 <record id="view_account_analytic_account_list" model="ir.ui.view">
6 <field name="name">account.analytic.account.list</field>
7 <field name="model">account.analytic.account</field>
8 <field name="type">tree</field>
9 <field eval="8" name="priority"/>
10 <field name="arch" type="xml">
11 <tree toolbar="1" colors="red:state=='pending';grey:state in ('cancelled','close');blue:type=='view'" string="Analytic Accounts">
12 <field name="complete_name"/>
14 <field name="quantity"/>
16 <field name="date_start" invisible="1"/>
17 <field name="user_id" invisible="1"/>
18 <field name="parent_id" invisible="1"/>
19 <field name="partner_id" invisible="1"/>
20 <field name="state" invisible="1"/>
21 <field name="type" invisible="1"/>
26 <record id="view_account_analytic_account_search" model="ir.ui.view">
27 <field name="name">account.analytic.account.search</field>
28 <field name="model">account.analytic.account</field>
29 <field name="type">search</field>
30 <field name="arch" type="xml">
31 <search string="Analytic Account">
34 filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]"
35 string="Analytic Account"/>
36 <separator orientation="vertical"/>
37 <filter icon="terp-gtk-media-pause" string="Pending" domain="[('state','=','pending')]" help="Pending Accounts"/>
38 <filter icon="terp-camera_test" string="Current" domain="[('state','=','open')]" help="Current Accounts"/>
39 <separator orientation="vertical"/>
40 <filter icon="terp-go-today" string="Overdue Account" domain="[('date','<',time.strftime('%%Y-%%m-%%d'))]" help="Analytic Accounts with a past deadline."/>
41 <separator orientation="vertical"/>
42 <field name="partner_id"/>
43 <field name="user_id" widget="selection"/>
46 <group expand="0" string="Group By...">
47 <filter string="Manager" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/>
48 <filter string="Associated Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
49 <separator orientation="vertical"/>
50 <filter string="Parent Account" icon="terp-folder-green" domain="[]" context="{'group_by':'parent_id'}"/>
51 <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}" groups="base.group_no_one"/>
57 <record id="view_account_analytic_account_tree" model="ir.ui.view">
58 <field name="name">account.analytic.account.tree</field>
59 <field name="model">account.analytic.account</field>
60 <field name="type">tree</field>
61 <field name="field_parent">child_complete_ids</field>
62 <field name="arch" type="xml">
63 <tree colors="blue:state=='pending';grey:state in ('close','cancelled');blue:type=='view'" string="Analytic account" toolbar="1">
67 <field name="credit"/>
68 <field name="balance"/>
69 <field name="state" invisible="1"/>
70 <field name="currency_id"/>
71 <field name="date" invisible="1"/>
72 <field name="user_id" invisible="1"/>
73 <field name="partner_id" invisible="1"/>
74 <field name="parent_id" invisible="1"/>
80 <record id="view_account_analytic_account_form" model="ir.ui.view">
81 <field name="name">account.analytic.account.form</field>
82 <field name="model">account.analytic.account</field>
83 <field name="type">form</field>
84 <field name="arch" type="xml">
85 <form string="Analytic Account" version="7.0">
89 <field name="name" colspan="4"/>
90 <field name="parent_id" on_change="on_change_parent(parent_id)"/>
91 <field name="company_id" on_change="on_change_company(company_id)" widget="selection" groups="base.group_multi_company" attrs="{'required': [('type','<>','view')]}"/>
99 <page string="Account Data">
101 <group string="Contacts">
102 <field name="partner_id"/>
103 <field name="user_id"/>
105 <group name="contract" string="Contract Data">
106 <field name="date_start"/>
108 <field name="quantity_max"/>
112 <page string="Description">
113 <field name="description"/>
121 <record id="action_account_analytic_account_form" model="ir.actions.act_window">
122 <field name="name">Analytic Accounts</field>
123 <field name="type">ir.actions.act_window</field>
124 <field name="res_model">account.analytic.account</field>
125 <field name="view_type">form</field>
126 <field name="view_mode">tree,graph,form</field>
127 <field name="view_id" ref="view_account_analytic_account_tree"/>
128 <field name="search_view_id" ref="account.view_account_analytic_account_search"/>
130 <menuitem action="action_account_analytic_account_form" id="account_analytic_def_account"
131 parent="menu_analytic_accounting"
132 groups="analytic.group_analytic_accounting"/>
134 <record id="act_account_renew_view" model="ir.actions.act_window">
135 <field name="name">Accounts to Renew</field>
136 <field name="type">ir.actions.act_window</field>
137 <field name="res_model">account.analytic.account</field>
138 <field name="view_type">form</field>
139 <field name="view_mode">tree,form</field>
140 <field name="domain">[('date','<',time.strftime('%Y-%m-%d %H:%M:%S'))]</field>
141 <field name="filter" eval="True"/>
144 <record id="action_account_analytic_account_tree2" model="ir.actions.act_window">
145 <field name="name">Chart of Analytic Accounts</field>
146 <field name="res_model">account.analytic.account</field>
147 <field name="view_type">tree</field>
148 <field name="view_id" ref="view_account_analytic_account_tree"/>
149 <field name="domain">[('parent_id','=',False)]</field>
150 <field name="help">The normal chart of accounts has a structure defined by the legal requirement of the country. The analytic chart of accounts structure should reflect your own business needs in term of costs/revenues reporting. They are usually structured by contracts, projects, products or departements. Most of the OpenERP operations (invoices, timesheets, expenses, etc) generate analytic entries on the related account.</field>
153 <menuitem groups="analytic.group_analytic_accounting" id="next_id_40"
154 name="Analytic" parent="account.menu_finance_generic_reporting"
157 <record id="view_account_analytic_line_form" model="ir.ui.view">
158 <field name="name">account.analytic.line.form</field>
159 <field name="model">account.analytic.line</field>
160 <field name="type">form</field>
161 <field name="arch" type="xml">
162 <form string="Analytic Entry" version="7.0">
166 <field name="account_id"/>
167 <field name="journal_id"/>
172 <field name="company_id" groups="base.group_multi_company"/>
174 <group string="Amount">
175 <field name="amount"/>
176 <label for="amount_currency"/>
178 <field name="amount_currency" class="oe_form_inline"/>
179 <field name="currency_id" class="oe_form_inline"/>
182 <group string="Product Information">
183 <field name="product_id"/>
184 <label for="unit_amount"/>
186 <field name="unit_amount" class="oe_form_inline"/>
187 <field name="product_uom_id" class="oe_form_inline"/>
190 <group string="General Accounting">
191 <field name="general_account_id"/>
192 <field name="move_id" readonly="1"/>
198 <record id="view_account_analytic_line_tree" model="ir.ui.view">
199 <field name="name">account.analytic.line.tree</field>
200 <field name="model">account.analytic.line</field>
201 <field name="type">tree</field>
202 <field name="arch" type="xml">
203 <tree editable="top" string="Analytic Entries">
205 <field name="ref" invisible="context.get('to_invoice', False)"/>
207 <field name="journal_id" invisible="context.get('to_invoice', False)"/>
208 <field name="amount" sum="Total" invisible="context.get('to_invoice', False)"/>
209 <field name="product_id" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id, journal_id)" invisible="not context.get('to_invoice', False)"/>
210 <field name="unit_amount" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)" sum="Total Quantity"/>
211 <field name="product_uom_id" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)" invisible="not context.get('to_invoice', False)"/>
212 <field domain="[('type','=','normal')]" name="account_id"/>
213 <field name="general_account_id" invisible="context.get('to_invoice', False)"/>
214 <field name="user_id" invisible="1" />
218 <record id="view_account_analytic_line_filter" model="ir.ui.view">
219 <field name="name">account.analytic.line.select</field>
220 <field name="model">account.analytic.line</field>
221 <field name="type">search</field>
222 <field name="arch" type="xml">
223 <search string="Search Analytic Lines">
226 filter_domain="[('name','ilike',self)]"
227 string="Analytic Line"/>
229 <separator orientation="vertical"/>
230 <filter name="sales" string="Sales" domain="[('journal_id.type','=','sale')]" icon="terp-camera_test" help="Analytic Journal Items related to a sale journal."/>
231 <filter name="purchases" string="Purchases" domain="[('journal_id.type','=','purchase')]" icon="terp-purchase" help="Analytic Journal Items related to a purchase journal."/>
232 <filter name="others" string="Others" domain="[('journal_id.type','in',('cash','general','situation'))]" icon="terp-folder-orange"/>
233 <filter string="My Entries" domain="[('user_id','=',uid)]" icon="terp-personal"/>
234 <separator orientation="vertical"/>
235 <field name="account_id"/>
236 <field name="user_id"/>
239 <group string="Group By..." expand="0">
240 <filter string="Account" context="{'group_by':'account_id'}" icon="terp-folder-green"/>
241 <filter string="Journal" context="{'group_by':'journal_id'}" icon="terp-folder-orange"/>
242 <filter string="User" context="{'group_by':'user_id'}" icon="terp-personal"/>
243 <separator orientation="vertical"/>
244 <filter string="Fin.Account" context="{'group_by':'general_account_id'}" icon="terp-folder-green"/>
245 <separator orientation="vertical"/>
246 <filter string="Product" context="{'group_by':'product_id'}" icon="terp-accessories-archiver"/>
251 <record id="action_account_analytic_line_form" model="ir.actions.act_window">
252 <field name="name">Analytic Entries</field>
253 <field name="type">ir.actions.act_window</field>
254 <field name="res_model">account.analytic.line</field>
255 <field name="view_type">form</field>
256 <field name="context">{"search_default_user_id":uid}</field>
257 <field name="view_id" ref="view_account_analytic_line_tree"/>
260 <!-- Entries by Line -->
262 <record id="action_account_tree1" model="ir.actions.act_window">
263 <field name="name">Analytic Items</field>
264 <field name="res_model">account.analytic.line</field>
265 <field name="view_type">form</field>
266 <field name="view_mode">tree,form</field>
267 <field name="domain">[('account_id','child_of',[active_id])]</field>
268 <field name="context">{'account_id':active_id}</field>
269 <field name="search_view_id" ref="view_account_analytic_line_filter"/>
271 <record id="ir_open_account_analytic_account" model="ir.values">
272 <field eval="'tree_but_open'" name="key2"/>
273 <field eval="'account.analytic.account'" name="model"/>
274 <field name="name">Open Account Tree</field>
275 <field eval="'ir.actions.act_window,%d'%action_account_tree1" name="value"/>
278 <record id="account_analytic_line_extended_form" model="ir.ui.view">
279 <field name="name">account.analytic.line.extended_form</field>
280 <field name="model">account.analytic.line</field>
281 <field name="type">form</field>
282 <field name="arch" type="xml">
283 <form string="Project line" version="7.0">
286 <field name="account_id"/>
287 <field name="date" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)"/>
288 <field name="journal_id"/>
289 <field name="unit_amount" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)"/>
290 <field name="product_id" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id, journal_id)"/>
291 <field name="product_uom_id" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)"/>
292 <field invisible="True" name="general_account_id"/>
293 <field name="amount"/>
294 <field name="currency_id" />
295 <field name="amount_currency" />
296 <field name="company_id" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)"/>
301 <record id="action_account_analytic_account_line_extended_form" model="ir.actions.act_window">
302 <field name="name">account.analytic.line.extended</field>
303 <field name="type">ir.actions.act_window</field>
304 <field name="res_model">account.analytic.line</field>
305 <field name="view_type">form</field>
306 <field name="view_id" ref="account_analytic_line_extended_form"/>
313 <record id="view_account_analytic_journal_tree" model="ir.ui.view">
314 <field name="name">account.analytic.journal.tree</field>
315 <field name="model">account.analytic.journal</field>
316 <field name="type">tree</field>
317 <field name="arch" type="xml">
318 <tree string="Analytic Journal">
326 <record id="view_analytic_journal_search" model="ir.ui.view">
327 <field name="name">account.analytic.journal.search</field>
328 <field name="model">account.analytic.journal</field>
329 <field name="type">search</field>
330 <field name="arch" type="xml">
331 <search string="Analytic Journals">
338 <group expand="0" string="Group By...">
339 <filter string="Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'type'}"/>
345 <record id="view_account_analytic_journal_form" model="ir.ui.view">
346 <field name="name">account.analytic.journal.form</field>
347 <field name="model">account.analytic.journal</field>
348 <field name="type">form</field>
349 <field name="arch" type="xml">
350 <form string="Analytic Journal" version="7.0">
355 <field name="active"/>
356 <field name="company_id" groups="base.group_multi_company"/>
361 <record id="action_account_analytic_journal_form" model="ir.actions.act_window">
362 <field name="name">Analytic Journals</field>
363 <field name="res_model">account.analytic.journal</field>
364 <field name="view_type">form</field>
365 <field name="view_mode">tree,form</field>
366 <field name="search_view_id" ref="view_analytic_journal_search" />
368 <menuitem groups="analytic.group_analytic_accounting" action="action_account_analytic_journal_form" id="account_def_analytic_journal" parent="menu_analytic_accounting" sequence="5"/>
371 # Open journal entries
374 <record id="action_account_analytic_journal_open_form" model="ir.actions.act_window">
375 <field name="name">Analytic Journal Items</field>
376 <field name="res_model">account.analytic.line</field>
377 <field name="view_type">form</field>
378 <field name="view_mode">tree,form</field>
380 <menuitem groups="analytic.group_analytic_accounting"
381 action="action_account_analytic_journal_open_form"
382 id="account_analytic_journal_entries"
383 parent="menu_finance_entries"/>
389 <record id="action_account_analytic_journal_tree" model="ir.actions.act_window">
390 <field name="name">Print Analytic Journals</field>
391 <field name="res_model">account.analytic.journal</field>
392 <field name="view_type">tree</field>
393 <field name="help">To print an analytics (or costs) journal for a given period. The report give code, move name, account number, general amount and analytic amount.</field>
395 <menuitem groups="analytic.group_analytic_accounting"
396 action="action_account_analytic_journal_tree"
397 id="account_analytic_journal_print" parent="account.next_id_40"/>
401 context="{'search_default_account_id': [active_id], 'search_default_user_id': False, 'default_account_id': active_id}"
402 id="act_acc_analytic_acc_5_report_hr_timesheet_invoice_journal"
403 name="All Analytic Entries"
404 res_model="account.analytic.line"
405 src_model="account.analytic.account"
406 view_mode="tree,form"
409 <record id="view_account_journal_1" model="ir.ui.view">
410 <field name="name">account.journal.form.1</field>
411 <field name="model">account.journal</field>
412 <field name="inherit_id" ref="account.view_account_journal_form"/>
413 <field name="type">form</field>
414 <field name="arch" type="xml">
415 <field name="currency" position="after">
416 <field name="analytic_journal_id"/>
421 <record id="analytic_accounts_graph" model="ir.ui.view">
422 <field name="name">analytic.accounts.graph</field>
423 <field name="model">account.analytic.account</field>
424 <field name="type">graph</field>
425 <field name="arch" type="xml">
426 <graph string="Analytic Account Statistics" type="bar">
427 <field name="complete_name"/>
428 <field name="balance" operator="+"/>