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:(date<current_date);black:(date>=current_date);black:(date==False)" string="Analytic Accounts">
13 <field name="complete_name"/>
14 <field name="quantity"/>
15 <field name="quantity_max"/>
17 <field name="user_id" invisible="1"/>
18 <field name="parent_id" invisible="1"/>
23 <record id="view_account_analytic_account_search" model="ir.ui.view">
24 <field name="name">account.analytic.account.search</field>
25 <field name="model">account.analytic.account</field>
26 <field name="type">search</field>
27 <field name="arch" type="xml">
28 <search string="Analytic Account">
29 <group col="8" colspan="4">
30 <filter icon="terp-gtk-media-pause" string="Pending" domain="[('state','=','pending')]" help="Pending Accounts"/>
31 <filter icon="terp-camera_test" string="Current" domain="[('state','=','open')]" help="Current Accounts"/>
32 <separator orientation="vertical"/>
33 <filter icon="terp-go-today" string="Overdue Account" domain="[('date','<',time.strftime('%%Y-%%m-%%d'))]" help="Analytic Accounts with a past deadline."/>
34 <separator orientation="vertical"/>
35 <field name="name" select="1"/>
36 <field name="code" select="1"/>
37 <field name="partner_id" select="1"/>
38 <field name="user_id" widget="selection"/>
41 <group expand="0" string="Group By...">
42 <filter string="Manager" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/>
43 <filter string="Associated Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
44 <separator orientation="vertical"/>
45 <filter string="Parent" icon="terp-folder-orange" domain="[]" context="{'group_by':'parent_id'}"/>
51 <record id="view_account_analytic_account_tree" model="ir.ui.view">
52 <field name="name">account.analytic.account.tree</field>
53 <field name="model">account.analytic.account</field>
54 <field name="type">tree</field>
55 <field name="field_parent">child_ids</field>
56 <field name="arch" type="xml">
57 <tree colors="red:(date<current_date);black:(date>=current_date);black:(date==False)" string="Analytic account" toolbar="1">
60 <field name="quantity"/>
61 <field name="quantity_max"/>
63 <field name="credit"/>
64 <field name="balance"/>
65 <field name="currency_id" groups="base.group_extended"/>
66 <field name="date" invisible="1"/>
67 <field name="user_id" invisible="1"/>
68 <field name="partner_id" invisible="1"/>
69 <field name="parent_id" invisible="1"/>
74 <record id="view_account_analytic_account_form" model="ir.ui.view">
75 <field name="name">account.analytic.account.form</field>
76 <field name="model">account.analytic.account</field>
77 <field name="type">form</field>
78 <field name="arch" type="xml">
79 <form string="Analytic account">
80 <group colspan="4" col="6">
81 <field name="name" select="1" colspan="4"/>
82 <field name="code" select="1"/>
83 <field name="parent_id" on_change="on_change_parent(parent_id)" groups="base.group_extended"/>
84 <field name="company_id" select="2" widget="selection" groups="base.group_multi_company"/>
85 <field name="type" select="2"/>
87 <notebook colspan="4">
88 <page string="Account Data">
89 <field name="partner_id" select="1"/>
91 <field name="date_start"/>
92 <field name="date" select="2"/>
94 <field name="quantity_max"/>
95 <field name="user_id"/>
97 <page string="Description">
98 <field colspan="4" name="description" nolabel="1"/>
105 <record id="action_account_analytic_account_form" model="ir.actions.act_window">
106 <field name="name">Analytic Accounts</field>
107 <field name="type">ir.actions.act_window</field>
108 <field name="res_model">account.analytic.account</field>
109 <field name="view_type">form</field>
110 <field name="view_mode">tree,graph,form</field>
111 <field name="view_id" ref="view_account_analytic_account_tree"/>
112 <field name="search_view_id" ref="account.view_account_analytic_account_search"/>
114 <menuitem action="action_account_analytic_account_form" id="account_analytic_def_account" parent="menu_analytic_accounting" groups="analytic.group_analytic_accounting,group_account_manager"/>
116 <record id="act_account_renew_view" model="ir.actions.act_window">
117 <field name="name">Accounts to Renew</field>
118 <field name="type">ir.actions.act_window</field>
119 <field name="res_model">account.analytic.account</field>
120 <field name="view_type">form</field>
121 <field name="view_mode">tree,form</field>
122 <field name="domain">[('date','<',time.strftime('%Y-%m-%d %H:%M:%S'))]</field>
123 <field name="filter" eval="True"/>
126 <record id="action_account_analytic_account_tree2" model="ir.actions.act_window">
127 <field name="name">Chart of Analytic Accounts</field>
128 <field name="res_model">account.analytic.account</field>
129 <field name="view_type">tree</field>
130 <field name="view_id" ref="view_account_analytic_account_tree"/>
131 <field name="domain">[('parent_id','=',False)]</field>
132 <field name="help">The normal chart of accounts has a structure defined by the legal requirement of the country. The analytic chart of account 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>
135 <menuitem groups="analytic.group_analytic_accounting,group_account_manager,group_account_user" id="next_id_40" name="Analytic" parent="account.menu_finance_generic_reporting" sequence="4"/>
137 <record id="view_account_analytic_line_form" model="ir.ui.view">
138 <field name="name">account.analytic.line.form</field>
139 <field name="model">account.analytic.line</field>
140 <field name="type">form</field>
141 <field name="arch" type="xml">
142 <form string="Analytic Entry">
143 <group colspan="4" col="6">
146 <field name="account_id"/>
147 <field name="journal_id"/>
149 <field name="company_id" groups="base.group_multi_company"/>
151 <group colspan="2" col="4">
152 <separator string="Amount" colspan="4"/>
153 <field name="amount" colspan="4"/>
154 <field name="amount_currency" colspan="2"/>
155 <field name="currency_id" colspan="2" nolabel="1"/>
157 <group colspan="2" col="4">
158 <separator string="Product Information" colspan="4"/>
159 <field name="product_id" colspan="4"/>
160 <field name="unit_amount" colspan="2"/>
161 <field name="product_uom_id" colspan="2" nolabel="1"/>
163 <group colspan="2" col="2" groups="base.group_extended">
164 <separator string="General Accounting" colspan="2"/>
165 <field name="general_account_id"/>
166 <field name="move_id" readonly="1"/>
171 <record id="view_account_analytic_line_tree" model="ir.ui.view">
172 <field name="name">account.analytic.line.tree</field>
173 <field name="model">account.analytic.line</field>
174 <field name="type">tree</field>
175 <field name="arch" type="xml">
176 <tree editable="top" string="Analytic Entries">
178 <field name="ref" invisible="context.get('to_invoice', False)"/>
180 <field name="journal_id" invisible="context.get('to_invoice', False)"/>
181 <field name="amount" sum="Total" invisible="context.get('to_invoice', False)"/>
182 <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)"/>
183 <field name="unit_amount" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)" sum="Total Quantity" invisible="not context.get('to_invoice', False)"/>
184 <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)"/>
185 <field domain="[('type','=','normal')]" name="account_id"/>
186 <field name="general_account_id" invisible="context.get('to_invoice', False)"/>
187 <field name="user_id" invisible="1" />
191 <record id="view_account_analytic_line_filter" model="ir.ui.view">
192 <field name="name">account.analytic.line.select</field>
193 <field name="model">account.analytic.line</field>
194 <field name="type">search</field>
195 <field name="arch" type="xml">
196 <search string="Search Analytic Lines">
197 <group col='6' colspan='4'>
198 <filter name="sales" string="Sales" domain="[('journal_id.type','=','sale')]" icon="terp-sale" help="Analytic Journal Items related to a sale journal."/>
199 <filter name="purchases" string="Purchases" domain="[('journal_id.type','=','purchase')]" icon="terp-purchase" help="Analytic Journal Items related to a purchase journal."/>
200 <filter name="others" string="Others" domain="[('journal_id.type','in',('cash','general','situation'))]" icon="terp-folder-orange"/>
201 <separator orientation="vertical"/>
204 <field name="account_id"/>
205 <field name="user_id">
206 <filter string="My Entries" domain="[('user_id','=',uid)]" icon="terp-personal"/>
210 <group string="Group By..." expand="0">
211 <filter string="Account" context="{'group_by':'account_id'}" groups="base.group_extended" icon="terp-folder-blue"/>
212 <filter string="Journal" context="{'group_by':'journal_id'}" icon="terp-folder-orange"/>
213 <filter string="User" context="{'group_by':'user_id'}" icon="terp-personal"/>
214 <separator orientation="vertical"/>
215 <filter string="Fin.Account" context="{'group_by':'general_account_id'}" icon="terp-folder-green"/>
216 <separator orientation="vertical"/>
217 <filter string="Product" context="{'group_by':'product_id'}" icon="terp-accessories-archiver"/>
220 <group expand="0" string="Extended options...">
221 <field name="journal_id" widget="selection"/>
222 <field name="product_id" widget="selection"/>
223 <field name="amount" select="1"/>
228 <record id="action_account_analytic_line_form" model="ir.actions.act_window">
229 <field name="name">Analytic Entries</field>
230 <field name="type">ir.actions.act_window</field>
231 <field name="res_model">account.analytic.line</field>
232 <field name="view_type">form</field>
233 <field name="context">{"search_default_user_id":uid}</field>
234 <field name="view_id" ref="view_account_analytic_line_tree"/>
237 <!-- Entries by Line -->
239 <record id="action_account_tree1" model="ir.actions.act_window">
240 <field name="name">Analytic Entries</field>
241 <field name="res_model">account.analytic.line</field>
242 <field name="view_type">form</field>
243 <field name="view_mode">tree,form</field>
244 <field name="domain">[('account_id','child_of',[active_id])]</field>
245 <field name="context">{'account_id':active_id}</field>
246 <field name="search_view_id" ref="view_account_analytic_line_filter"/>
248 <record id="ir_open_account_analytic_account" model="ir.values">
249 <field eval="'tree_but_open'" name="key2"/>
250 <field eval="'account.analytic.account'" name="model"/>
251 <field name="name">Open Account Tree</field>
252 <field eval="'ir.actions.act_window,%d'%action_account_tree1" name="value"/>
253 <field eval="True" name="object"/>
256 <record id="account_analytic_line_extended_form" model="ir.ui.view">
257 <field name="name">account.analytic.line.extended_form</field>
258 <field name="model">account.analytic.line</field>
259 <field name="type">form</field>
260 <field name="arch" type="xml">
261 <form string="Project line">
263 <field name="account_id" groups="base.group_extended"/>
264 <field name="date" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)"/>
265 <field name="journal_id"/>
266 <field name="unit_amount" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)"/>
267 <field name="product_id" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id, journal_id)"/>
268 <field name="product_uom_id" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)"/>
269 <field invisible="True" name="general_account_id"/>
270 <field name="amount"/>
271 <field name="currency_id" />
272 <field name="amount_currency" />
273 <field name="company_id" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)"/>
277 <record id="action_account_analytic_account_line_extended_form" model="ir.actions.act_window">
278 <field name="name">account.analytic.line.extended</field>
279 <field name="type">ir.actions.act_window</field>
280 <field name="res_model">account.analytic.line</field>
281 <field name="view_type">form</field>
282 <field name="view_id" ref="account_analytic_line_extended_form"/>
289 <record id="view_account_analytic_journal_tree" model="ir.ui.view">
290 <field name="name">account.analytic.journal.tree</field>
291 <field name="model">account.analytic.journal</field>
292 <field name="type">tree</field>
293 <field name="arch" type="xml">
294 <tree string="Analytic Journal">
302 <record id="view_analytic_journal_search" model="ir.ui.view">
303 <field name="name">account.analytic.journal.search</field>
304 <field name="model">account.analytic.journal</field>
305 <field name="type">search</field>
306 <field name="arch" type="xml">
307 <search string="Analytic Journals">
314 <group expand="0" string="Group By...">
315 <filter string="Type" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'type'}"/>
321 <record id="view_account_analytic_journal_form" model="ir.ui.view">
322 <field name="name">account.analytic.journal.form</field>
323 <field name="model">account.analytic.journal</field>
324 <field name="type">form</field>
325 <field name="arch" type="xml">
326 <form string="Analytic Journal">
327 <field name="name" select="1"/>
328 <field name="code" select="1"/>
329 <field name="type" select="2"/>
330 <field name="active" select="2"/>
331 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
335 <record id="action_account_analytic_journal_form" model="ir.actions.act_window">
336 <field name="name">Analytic Journals</field>
337 <field name="res_model">account.analytic.journal</field>
338 <field name="view_type">form</field>
339 <field name="view_mode">tree,form,search</field>
340 <field name="search_view_id" ref="view_analytic_journal_search" />
342 <menuitem groups="analytic.group_analytic_accounting,group_account_manager" action="action_account_analytic_journal_form" id="account_def_analytic_journal" parent="menu_analytic_accounting" sequence="5"/>
345 # Open journal entries
348 <record id="action_account_analytic_journal_open_form" model="ir.actions.act_window">
349 <field name="name">Analytic Journal Items</field>
350 <field name="res_model">account.analytic.line</field>
351 <field name="view_type">form</field>
352 <field name="view_mode">tree,form</field>
354 <menuitem groups="analytic.group_analytic_accounting,group_account_manager,group_account_user" action="action_account_analytic_journal_open_form" id="account_analytic_journal_entries" parent="menu_finance_entries"/>
360 <record id="action_account_analytic_journal_tree" model="ir.actions.act_window">
361 <field name="name">Print Analytic Journals</field>
362 <field name="res_model">account.analytic.journal</field>
363 <field name="view_type">tree</field>
364 <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>
366 <menuitem groups="analytic.group_analytic_accounting,group_account_manager,group_account_user" action="action_account_analytic_journal_tree" id="account_analytic_journal_print" parent="account.next_id_40"/>
372 <record id="report_hr_timesheet_invoice_journal_form" model="ir.ui.view">
373 <field name="name">report.hr.timesheet.invoice.journal.form</field>
374 <field name="model">report.hr.timesheet.invoice.journal</field>
375 <field name="type">form</field>
376 <field name="arch" type="xml">
377 <form string="Analytic Entries Stats">
378 <field name="name" select="1"/>
379 <field name="account_id" select="1"/>
380 <field name="journal_id" select="2"/>
386 <record id="report_hr_timesheet_invoice_journal_tree" model="ir.ui.view">
387 <field name="name">report.hr.timesheet.invoice.journal.tree</field>
388 <field name="model">report.hr.timesheet.invoice.journal</field>
389 <field name="type">tree</field>
390 <field name="arch" type="xml">
391 <tree string="Analytic Entries Stats">
393 <field name="month"/>
394 <field name="account_id"/>
395 <field name="journal_id"/>
396 <field name="quantity"/>
397 <field name="revenue"/>
403 <record id="report_hr_timesheet_invoice_journal_graph" model="ir.ui.view">
404 <field name="name">report.hr.timesheet.invoice.journal.graph</field>
405 <field name="model">report.hr.timesheet.invoice.journal</field>
406 <field name="type">graph</field>
407 <field name="arch" type="xml">
408 <graph string="Analytic Entries Stats" type="bar">
410 <field name="month"/>
411 <field name="cost" operator="+"/>
412 <field name="revenue" operator="+"/>
413 <field group="True" name="journal_id"/>
418 <record id="report_hr_timesheet_invoice_journal_search" model="ir.ui.view">
419 <field name="name">report.hr.timesheet.invoice.journal.search</field>
420 <field name="model">report.hr.timesheet.invoice.journal</field>
421 <field name="type">search</field>
422 <field name="arch" type="xml">
423 <search string="Analytic Entries Stats">
424 <group col="8" colspan="4">
425 <filter icon="terp-go-year" string="This Year" domain="[('name','=',time.strftime('%%Y'))]" help="Sale journal in this year"/>
426 <filter icon="terp-go-month" string="This Month" domain="[('month','=',time.strftime('%%m'))]" help="Sale journal in this month"/>
427 <separator orientation="vertical"/>
428 <field name="name" select="1"/>
429 <field name="month" select="1"/>
430 <field name="account_id" select="1"/>
437 context="{'search_default_account_id': [active_id], 'search_default_user_id': False}"
438 id="act_acc_analytic_acc_5_report_hr_timesheet_invoice_journal"
439 name="All Analytic Entries"
440 res_model="account.analytic.line"
441 src_model="account.analytic.account"
442 view_mode="tree,form"
445 <record id="view_account_journal_1" model="ir.ui.view">
446 <field name="name">account.journal.form.1</field>
447 <field name="model">account.journal</field>
448 <field name="inherit_id" ref="account.view_account_journal_form"/>
449 <field name="type">form</field>
450 <field name="arch" type="xml">
451 <field name="currency" position="after">
452 <field name="analytic_journal_id"/>
457 <record id="analytic_accounts_graph" model="ir.ui.view">
458 <field name="name">analytic.accounts.graph</field>
459 <field name="model">account.analytic.account</field>
460 <field name="type">graph</field>
461 <field name="arch" type="xml">
462 <graph string="Analytic Account Statistics" type="bar">
463 <field name="complete_name"/>
464 <field name="balance" operator="+"/>