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">
33 <filter icon="terp-gtk-media-pause" string="Pending" domain="[('state','=','pending')]" help="Pending Accounts"/>
34 <filter icon="terp-camera_test" string="Current" domain="[('state','=','open')]" help="Current Accounts"/>
35 <separator orientation="vertical"/>
36 <filter icon="terp-go-today" string="Overdue Account" domain="[('date','<',time.strftime('%%Y-%%m-%%d'))]" help="Analytic Accounts with a past deadline."/>
37 <separator orientation="vertical"/>
40 <field name="partner_id"/>
41 <field name="user_id" widget="selection"/>
44 <group expand="0" string="Group By...">
45 <filter string="Manager" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/>
46 <filter string="Associated Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
47 <separator orientation="vertical"/>
48 <filter string="Parent Account" icon="terp-folder-green" domain="[]" context="{'group_by':'parent_id'}"/>
49 <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}" groups="base.group_no_one"/>
55 <record id="view_account_analytic_account_tree" model="ir.ui.view">
56 <field name="name">account.analytic.account.tree</field>
57 <field name="model">account.analytic.account</field>
58 <field name="type">tree</field>
59 <field name="field_parent">child_complete_ids</field>
60 <field name="arch" type="xml">
61 <tree colors="blue:state=='pending';grey:state in ('close','cancelled');blue:type=='view'" string="Analytic account" toolbar="1">
65 <field name="credit"/>
66 <field name="balance"/>
67 <field name="state" invisible="1"/>
68 <field name="currency_id"/>
69 <field name="date" invisible="1"/>
70 <field name="user_id" invisible="1"/>
71 <field name="partner_id" invisible="1"/>
72 <field name="parent_id" invisible="1"/>
78 <record id="view_account_analytic_account_form" model="ir.ui.view">
79 <field name="name">account.analytic.account.form</field>
80 <field name="model">account.analytic.account</field>
81 <field name="type">form</field>
82 <field name="arch" type="xml">
83 <form string="Analytic Account" version="7.0">
87 <field name="name" colspan="4"/>
88 <field name="parent_id" on_change="on_change_parent(parent_id)"/>
89 <field name="company_id" on_change="on_change_company(company_id)" widget="selection" groups="base.group_multi_company" attrs="{'required': [('type','<>','view')]}"/>
97 <page string="Account Data">
99 <group string="Contacts">
100 <field name="partner_id"/>
101 <field name="user_id"/>
103 <group name="contract" string="Contract Data">
104 <field name="date_start"/>
106 <field name="quantity_max"/>
110 <page string="Description">
111 <field name="description"/>
119 <record id="action_account_analytic_account_form" model="ir.actions.act_window">
120 <field name="name">Analytic Accounts</field>
121 <field name="type">ir.actions.act_window</field>
122 <field name="res_model">account.analytic.account</field>
123 <field name="view_type">form</field>
124 <field name="view_mode">tree,graph,form</field>
125 <field name="view_id" ref="view_account_analytic_account_tree"/>
126 <field name="search_view_id" ref="account.view_account_analytic_account_search"/>
128 <menuitem action="action_account_analytic_account_form" id="account_analytic_def_account"
129 parent="menu_analytic_accounting"
130 groups="analytic.group_analytic_accounting"/>
132 <record id="act_account_renew_view" model="ir.actions.act_window">
133 <field name="name">Accounts to Renew</field>
134 <field name="type">ir.actions.act_window</field>
135 <field name="res_model">account.analytic.account</field>
136 <field name="view_type">form</field>
137 <field name="view_mode">tree,form</field>
138 <field name="domain">[('date','<',time.strftime('%Y-%m-%d %H:%M:%S'))]</field>
139 <field name="filter" eval="True"/>
142 <record id="action_account_analytic_account_tree2" model="ir.actions.act_window">
143 <field name="name">Chart of Analytic Accounts</field>
144 <field name="res_model">account.analytic.account</field>
145 <field name="view_type">tree</field>
146 <field name="view_id" ref="view_account_analytic_account_tree"/>
147 <field name="domain">[('parent_id','=',False)]</field>
148 <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>
151 <menuitem groups="analytic.group_analytic_accounting" id="next_id_40"
152 name="Analytic" parent="account.menu_finance_generic_reporting"
155 <record id="view_account_analytic_line_form" model="ir.ui.view">
156 <field name="name">account.analytic.line.form</field>
157 <field name="model">account.analytic.line</field>
158 <field name="type">form</field>
159 <field name="arch" type="xml">
160 <form string="Analytic Entry" version="7.0">
164 <field name="account_id"/>
165 <field name="journal_id"/>
170 <field name="company_id" groups="base.group_multi_company"/>
172 <group string="Amount">
173 <field name="amount"/>
174 <label for="amount_currency"/>
176 <field name="amount_currency" class="oe_form_inline"/>
177 <field name="currency_id" class="oe_form_inline"/>
180 <group string="Product Information">
181 <field name="product_id"/>
182 <label for="unit_amount"/>
184 <field name="unit_amount" class="oe_form_inline"/>
185 <field name="product_uom_id" class="oe_form_inline"/>
188 <group string="General Accounting">
189 <field name="general_account_id"/>
190 <field name="move_id" readonly="1"/>
196 <record id="view_account_analytic_line_tree" model="ir.ui.view">
197 <field name="name">account.analytic.line.tree</field>
198 <field name="model">account.analytic.line</field>
199 <field name="type">tree</field>
200 <field name="arch" type="xml">
201 <tree editable="top" string="Analytic Entries">
203 <field name="ref" invisible="context.get('to_invoice', False)"/>
205 <field name="journal_id" invisible="context.get('to_invoice', False)"/>
206 <field name="amount" sum="Total" invisible="context.get('to_invoice', False)"/>
207 <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)"/>
208 <field name="unit_amount" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)" sum="Total Quantity"/>
209 <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)"/>
210 <field domain="[('type','=','normal')]" name="account_id"/>
211 <field name="general_account_id" invisible="context.get('to_invoice', False)"/>
212 <field name="user_id" invisible="1" />
216 <record id="view_account_analytic_line_filter" model="ir.ui.view">
217 <field name="name">account.analytic.line.select</field>
218 <field name="model">account.analytic.line</field>
219 <field name="type">search</field>
220 <field name="arch" type="xml">
221 <search string="Search Analytic Lines">
223 <filter name="sales" string="Sales" domain="[('journal_id.type','=','sale')]" icon="terp-camera_test" help="Analytic Journal Items related to a sale journal."/>
224 <filter name="purchases" string="Purchases" domain="[('journal_id.type','=','purchase')]" icon="terp-purchase" help="Analytic Journal Items related to a purchase journal."/>
225 <filter name="others" string="Others" domain="[('journal_id.type','in',('cash','general','situation'))]" icon="terp-folder-orange"/>
226 <separator orientation="vertical"/>
229 <field name="account_id"/>
230 <field name="user_id">
231 <filter string="My Entries" domain="[('user_id','=',uid)]" icon="terp-personal"/>
235 <group string="Group By..." expand="0">
236 <filter string="Account" context="{'group_by':'account_id'}" icon="terp-folder-green"/>
237 <filter string="Journal" context="{'group_by':'journal_id'}" icon="terp-folder-orange"/>
238 <filter string="User" context="{'group_by':'user_id'}" icon="terp-personal"/>
239 <separator orientation="vertical"/>
240 <filter string="Fin.Account" context="{'group_by':'general_account_id'}" icon="terp-folder-green"/>
241 <separator orientation="vertical"/>
242 <filter string="Product" context="{'group_by':'product_id'}" icon="terp-accessories-archiver"/>
247 <record id="action_account_analytic_line_form" model="ir.actions.act_window">
248 <field name="name">Analytic Entries</field>
249 <field name="type">ir.actions.act_window</field>
250 <field name="res_model">account.analytic.line</field>
251 <field name="view_type">form</field>
252 <field name="context">{"search_default_user_id":uid}</field>
253 <field name="view_id" ref="view_account_analytic_line_tree"/>
256 <!-- Entries by Line -->
258 <record id="action_account_tree1" model="ir.actions.act_window">
259 <field name="name">Analytic Items</field>
260 <field name="res_model">account.analytic.line</field>
261 <field name="view_type">form</field>
262 <field name="view_mode">tree,form</field>
263 <field name="domain">[('account_id','child_of',[active_id])]</field>
264 <field name="context">{'account_id':active_id}</field>
265 <field name="search_view_id" ref="view_account_analytic_line_filter"/>
267 <record id="ir_open_account_analytic_account" model="ir.values">
268 <field eval="'tree_but_open'" name="key2"/>
269 <field eval="'account.analytic.account'" name="model"/>
270 <field name="name">Open Account Tree</field>
271 <field eval="'ir.actions.act_window,%d'%action_account_tree1" name="value"/>
274 <record id="account_analytic_line_extended_form" model="ir.ui.view">
275 <field name="name">account.analytic.line.extended_form</field>
276 <field name="model">account.analytic.line</field>
277 <field name="type">form</field>
278 <field name="arch" type="xml">
279 <form string="Project line" version="7.0">
282 <field name="account_id"/>
283 <field name="date" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)"/>
284 <field name="journal_id"/>
285 <field name="unit_amount" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)"/>
286 <field name="product_id" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id, journal_id)"/>
287 <field name="product_uom_id" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)"/>
288 <field invisible="True" name="general_account_id"/>
289 <field name="amount"/>
290 <field name="currency_id" />
291 <field name="amount_currency" />
292 <field name="company_id" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)"/>
297 <record id="action_account_analytic_account_line_extended_form" model="ir.actions.act_window">
298 <field name="name">account.analytic.line.extended</field>
299 <field name="type">ir.actions.act_window</field>
300 <field name="res_model">account.analytic.line</field>
301 <field name="view_type">form</field>
302 <field name="view_id" ref="account_analytic_line_extended_form"/>
309 <record id="view_account_analytic_journal_tree" model="ir.ui.view">
310 <field name="name">account.analytic.journal.tree</field>
311 <field name="model">account.analytic.journal</field>
312 <field name="type">tree</field>
313 <field name="arch" type="xml">
314 <tree string="Analytic Journal">
322 <record id="view_analytic_journal_search" model="ir.ui.view">
323 <field name="name">account.analytic.journal.search</field>
324 <field name="model">account.analytic.journal</field>
325 <field name="type">search</field>
326 <field name="arch" type="xml">
327 <search string="Analytic Journals">
334 <group expand="0" string="Group By...">
335 <filter string="Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'type'}"/>
341 <record id="view_account_analytic_journal_form" model="ir.ui.view">
342 <field name="name">account.analytic.journal.form</field>
343 <field name="model">account.analytic.journal</field>
344 <field name="type">form</field>
345 <field name="arch" type="xml">
346 <form string="Analytic Journal" version="7.0">
351 <field name="active"/>
352 <field name="company_id" groups="base.group_multi_company"/>
357 <record id="action_account_analytic_journal_form" model="ir.actions.act_window">
358 <field name="name">Analytic Journals</field>
359 <field name="res_model">account.analytic.journal</field>
360 <field name="view_type">form</field>
361 <field name="view_mode">tree,form</field>
362 <field name="search_view_id" ref="view_analytic_journal_search" />
364 <menuitem groups="analytic.group_analytic_accounting" action="action_account_analytic_journal_form" id="account_def_analytic_journal" parent="menu_analytic_accounting" sequence="5"/>
367 # Open journal entries
370 <record id="action_account_analytic_journal_open_form" model="ir.actions.act_window">
371 <field name="name">Analytic Journal Items</field>
372 <field name="res_model">account.analytic.line</field>
373 <field name="view_type">form</field>
374 <field name="view_mode">tree,form</field>
376 <menuitem groups="analytic.group_analytic_accounting"
377 action="action_account_analytic_journal_open_form"
378 id="account_analytic_journal_entries"
379 parent="menu_finance_entries"/>
385 <record id="action_account_analytic_journal_tree" model="ir.actions.act_window">
386 <field name="name">Print Analytic Journals</field>
387 <field name="res_model">account.analytic.journal</field>
388 <field name="view_type">tree</field>
389 <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>
391 <menuitem groups="analytic.group_analytic_accounting"
392 action="action_account_analytic_journal_tree"
393 id="account_analytic_journal_print" parent="account.next_id_40"/>
397 context="{'search_default_account_id': [active_id], 'search_default_user_id': False, 'default_account_id': active_id}"
398 id="act_acc_analytic_acc_5_report_hr_timesheet_invoice_journal"
399 name="All Analytic Entries"
400 res_model="account.analytic.line"
401 src_model="account.analytic.account"
402 view_mode="tree,form"
405 <record id="view_account_journal_1" model="ir.ui.view">
406 <field name="name">account.journal.form.1</field>
407 <field name="model">account.journal</field>
408 <field name="inherit_id" ref="account.view_account_journal_form"/>
409 <field name="type">form</field>
410 <field name="arch" type="xml">
411 <field name="currency" position="after">
412 <field name="analytic_journal_id"/>
417 <record id="analytic_accounts_graph" model="ir.ui.view">
418 <field name="name">analytic.accounts.graph</field>
419 <field name="model">account.analytic.account</field>
420 <field name="type">graph</field>
421 <field name="arch" type="xml">
422 <graph string="Analytic Account Statistics" type="bar">
423 <field name="complete_name"/>
424 <field name="balance" operator="+"/>