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 eval="8" name="priority"/>
9 <field name="arch" type="xml">
10 <tree toolbar="1" colors="red:state=='pending';grey:state in ('cancelled','close');blue:type=='view'" string="Analytic Accounts">
11 <field name="complete_name"/>
12 <field name="partner_id"/>
15 <field name="date_start"/>
16 <field name="user_id" invisible="1"/>
17 <field name="manager_id"/>
18 <field name="parent_id" invisible="1"/>
19 <field name="state" invisible="1"/>
20 <field name="type" invisible="1"/>
21 <field name="company_id" groups="base.group_multi_company"/>
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="arch" type="xml">
30 <search string="Analytic Account">
31 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Analytic Account"/>
33 <field name="partner_id"/>
34 <field name="manager_id"/>
35 <field name="parent_id"/>
36 <field name="user_id"/>
37 <filter string="Open" domain="[('state','=','open')]" help="Current Accounts"/>
38 <filter string="Pending" domain="[('state','=','pending')]" help="Pending Accounts"/>
39 <group expand="0" string="Group By...">
40 <filter string="Associated Partner" domain="[]" context="{'group_by':'partner_id'}"/>
41 <filter string="Type" domain="[]" context="{'group_by':'type'}"/>
42 <filter string="Template" domain="[]" context="{'group_by':'template_id'}"/>
43 <filter string="Parent Account" domain="[]" context="{'group_by':'parent_id'}"/>
44 <filter string="Status" domain="[]" context="{'group_by':'state'}" groups="base.group_no_one"/>
50 <record id="view_account_analytic_account_tree" model="ir.ui.view">
51 <field name="name">account.analytic.account.tree</field>
52 <field name="model">account.analytic.account</field>
53 <field name="field_parent">child_complete_ids</field>
54 <field name="arch" type="xml">
55 <tree colors="blue:state=='pending';grey:state in ('close','cancelled');blue:type=='view'" string="Analytic account" toolbar="1">
56 <field name="name" invisible="1"/>
57 <field name="complete_name"/>
60 <field name="credit"/>
61 <field name="balance"/>
62 <field name="state" invisible="1"/>
63 <field name="currency_id" groups="base.group_multi_currency"/>
64 <field name="date" invisible="1"/>
65 <field name="user_id" invisible="1"/>
66 <field name="partner_id" invisible="1"/>
67 <field name="parent_id" invisible="1"/>
69 <field name="company_id" groups="base.group_multi_company"/>
70 <field name="template_id" invisible="1"/>
76 <record id="action_account_analytic_account_form" model="ir.actions.act_window">
77 <field name="name">Analytic Accounts</field>
78 <field name="type">ir.actions.act_window</field>
79 <field name="res_model">account.analytic.account</field>
80 <field name="view_type">form</field>
81 <field name="view_mode">tree,form</field>
82 <field name="view_id" ref="view_account_analytic_account_tree"/>
83 <field name="search_view_id" ref="account.view_account_analytic_account_search"/>
85 <menuitem action="action_account_analytic_account_form" id="account_analytic_def_account"
86 parent="menu_analytic_accounting"
87 groups="analytic.group_analytic_accounting"/>
89 <record id="act_account_renew_view" model="ir.actions.act_window">
90 <field name="name">Accounts to Renew</field>
91 <field name="type">ir.actions.act_window</field>
92 <field name="res_model">account.analytic.account</field>
93 <field name="view_type">form</field>
94 <field name="view_mode">tree,form</field>
95 <field name="domain">[('date','<',time.strftime('%Y-%m-%d %H:%M:%S'))]</field>
96 <field name="filter" eval="True"/>
99 <record id="action_account_analytic_account_tree2" model="ir.actions.act_window">
100 <field name="name">Chart of Analytic Accounts</field>
101 <field name="res_model">account.analytic.account</field>
102 <field name="view_type">tree</field>
103 <field name="view_id" ref="view_account_analytic_account_tree"/>
104 <field name="domain">[('parent_id','=',False)]</field>
105 <field name="help" type="html">
107 Click to add a new analytic account.
109 The normal chart of accounts has a structure defined by the
110 legal requirement of the country. The analytic chart of
111 accounts structure should reflect your own business needs in
112 term of costs/revenues reporting.
114 They are usually structured by contracts, projects, products or
115 departements. Most of the OpenERP operations (invoices,
116 timesheets, expenses, etc) generate analytic entries on the
123 <record id="view_account_analytic_line_form" model="ir.ui.view">
124 <field name="name">account.analytic.line.form</field>
125 <field name="model">account.analytic.line</field>
126 <field name="priority">1</field>
127 <field name="arch" type="xml">
128 <form string="Analytic Entry" version="7.0">
132 <field name="account_id"/>
133 <field name="journal_id"/>
138 <field name="company_id" groups="base.group_multi_company"/>
140 <group string="Amount">
141 <field name="amount"/>
142 <label for="amount_currency" groups="base.group_multi_currency"/>
143 <div groups="base.group_multi_currency">
144 <field name="amount_currency" class="oe_inline"/>
145 <field name="currency_id" class="oe_inline"/>
148 <group string="Product Information">
149 <field name="product_id" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id, journal_id)"/>
150 <label for="unit_amount"/>
152 <field name="unit_amount" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)" class="oe_inline"/>
153 <field name="product_uom_id" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)" class="oe_inline"/>
156 <group string="General Accounting">
157 <field name="general_account_id"/>
158 <field name="move_id" readonly="1"/>
164 <record id="view_account_analytic_line_tree" model="ir.ui.view">
165 <field name="name">account.analytic.line.tree</field>
166 <field name="model">account.analytic.line</field>
167 <field name="arch" type="xml">
168 <tree string="Analytic Entries">
170 <field name="ref" invisible="context.get('to_invoice', False)"/>
172 <field name="journal_id" invisible="context.get('to_invoice', False)"/>
173 <field name="amount" sum="Total" invisible="context.get('to_invoice', False)"/>
174 <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)"/>
175 <field name="unit_amount" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)" sum="Total Quantity"/>
176 <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)"/>
177 <field domain="[('type','=','normal')]" name="account_id"/>
178 <field name="general_account_id" invisible="context.get('to_invoice', False)"/>
179 <field name="user_id" invisible="1" />
180 <field name="company_id" groups="base.group_multi_company"/>
184 <record id="view_account_analytic_line_filter" model="ir.ui.view">
185 <field name="name">account.analytic.line.select</field>
186 <field name="model">account.analytic.line</field>
187 <field name="arch" type="xml">
188 <search string="Search Analytic Lines">
189 <field name="name" string="Analytic Line"/>
191 <filter name="sales" string="Sales" domain="[('journal_id.type','=','sale')]" help="Analytic Journal Items related to a sale journal."/>
192 <filter name="purchases" string="Purchases" domain="[('journal_id.type','=','purchase')]" help="Analytic Journal Items related to a purchase journal."/>
193 <filter name="others" string="Others" domain="[('journal_id.type','in',('cash','general','situation'))]"/>
195 <filter string="My Entries" domain="[('user_id','=',uid)]"/>
196 <field name="account_id"/>
197 <field name="user_id"/>
198 <group string="Group By..." expand="0">
199 <filter string="Analytic Account" context="{'group_by':'account_id'}"/>
200 <filter string="Fin. Account" context="{'group_by':'general_account_id'}"/>
201 <filter string="Journal" context="{'group_by':'journal_id'}" name="group_journal"/>
203 <filter string="Product" context="{'group_by':'product_id'}"/>
204 <filter string="User" context="{'group_by':'user_id'}"/>
206 <filter string="Date" context="{'group_by':'date'}" name="group_date"/>
212 <record id="action_account_analytic_line_form" model="ir.actions.act_window">
213 <field name="name">Analytic Entries</field>
214 <field name="type">ir.actions.act_window</field>
215 <field name="res_model">account.analytic.line</field>
216 <field name="view_type">form</field>
217 <field name="context">{"search_default_user_id":uid}</field>
218 <field name="view_id" ref="view_account_analytic_line_tree"/>
221 <!-- Entries by Line -->
223 <record id="action_account_tree1" model="ir.actions.act_window">
224 <field name="name">Analytic Items</field>
225 <field name="res_model">account.analytic.line</field>
226 <field name="view_type">form</field>
227 <field name="view_mode">tree,form</field>
228 <field name="domain">[('account_id','child_of',[active_id])]</field>
229 <field name="context">{'account_id':active_id}</field>
230 <field name="search_view_id" ref="view_account_analytic_line_filter"/>
232 <record id="ir_open_account_analytic_account" model="ir.values">
233 <field eval="'tree_but_open'" name="key2"/>
234 <field eval="'account.analytic.account'" name="model"/>
235 <field name="name">Open Account Tree</field>
236 <field eval="'ir.actions.act_window,%d'%action_account_tree1" name="value"/>
239 <record id="account_analytic_line_extended_form" model="ir.ui.view">
240 <field name="name">account.analytic.line.extended_form</field>
241 <field name="model">account.analytic.line</field>
242 <field name="arch" type="xml">
243 <form string="Project line" version="7.0">
247 <field name="account_id"/>
248 <field name="journal_id"/>
251 <field name="date" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)"/>
252 <field name="company_id" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)"/>
254 <group string="Amount">
255 <field name="amount"/>
256 <label for="amount_currency" groups="base.group_multi_currency"/>
257 <div groups="base.group_multi_currency">
258 <field name="amount_currency" class="oe_inline"/>
259 <field name="currency_id" class="oe_inline"/>
261 <field invisible="1" name="general_account_id"/>
263 <group string="Product Information">
264 <field name="product_id" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id, journal_id)"/>
265 <label for="unit_amount"/>
267 <field name="unit_amount" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)" class="oe_inline"/>
268 <field name="product_uom_id" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)" class="oe_inline"/>
275 <record id="action_account_analytic_account_line_extended_form" model="ir.actions.act_window">
276 <field name="name">account.analytic.line.extended</field>
277 <field name="type">ir.actions.act_window</field>
278 <field name="res_model">account.analytic.line</field>
279 <field name="view_type">form</field>
280 <field name="view_id" ref="account_analytic_line_extended_form"/>
287 <record id="view_account_analytic_journal_tree" model="ir.ui.view">
288 <field name="name">account.analytic.journal.tree</field>
289 <field name="model">account.analytic.journal</field>
290 <field name="arch" type="xml">
291 <tree string="Analytic Journal">
299 <record id="view_analytic_journal_search" model="ir.ui.view">
300 <field name="name">account.analytic.journal.search</field>
301 <field name="model">account.analytic.journal</field>
302 <field name="arch" type="xml">
303 <search string="Analytic Journals">
304 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Analytic Journal"/>
306 <group expand="0" string="Group By...">
307 <filter string="Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'type'}"/>
313 <record id="view_account_analytic_journal_form" model="ir.ui.view">
314 <field name="name">account.analytic.journal.form</field>
315 <field name="model">account.analytic.journal</field>
316 <field name="arch" type="xml">
317 <form string="Analytic Journal" version="7.0">
322 <field name="active"/>
323 <field name="company_id" groups="base.group_multi_company"/>
328 <record id="action_account_analytic_journal_form" model="ir.actions.act_window">
329 <field name="name">Analytic Journals</field>
330 <field name="res_model">account.analytic.journal</field>
331 <field name="view_type">form</field>
332 <field name="view_mode">tree,form</field>
333 <field name="search_view_id" ref="view_analytic_journal_search" />
335 <menuitem groups="analytic.group_analytic_accounting" action="action_account_analytic_journal_form" id="account_def_analytic_journal" parent="menu_analytic_accounting" sequence="5"/>
338 # Open journal entries
341 <record id="action_account_analytic_journal_open_form" model="ir.actions.act_window">
342 <field name="name">Analytic Journal Items</field>
343 <field name="res_model">account.analytic.line</field>
344 <field name="view_type">form</field>
345 <field name="view_mode">tree,form</field>
347 <menuitem groups="analytic.group_analytic_accounting"
348 action="action_account_analytic_journal_open_form"
349 id="account_analytic_journal_entries"
350 parent="menu_finance_entries"/>
357 <record id="view_account_journal_1" model="ir.ui.view">
358 <field name="name">account.journal.form.1</field>
359 <field name="model">account.journal</field>
360 <field name="inherit_id" ref="account.view_account_journal_form"/>
361 <field name="arch" type="xml">
362 <field name="type" position="after">
363 <field name="analytic_journal_id"/>