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"/>
75 <record id="action_account_analytic_account_form" model="ir.actions.act_window">
76 <field name="name">Analytic Accounts</field>
77 <field name="type">ir.actions.act_window</field>
78 <field name="res_model">account.analytic.account</field>
79 <field name="view_type">form</field>
80 <field name="view_mode">tree,form</field>
81 <field name="view_id" ref="view_account_analytic_account_tree"/>
82 <field name="search_view_id" ref="account.view_account_analytic_account_search"/>
84 <menuitem action="action_account_analytic_account_form" id="account_analytic_def_account"
85 parent="menu_analytic_accounting"
86 groups="analytic.group_analytic_accounting"/>
88 <record id="act_account_renew_view" model="ir.actions.act_window">
89 <field name="name">Accounts to Renew</field>
90 <field name="type">ir.actions.act_window</field>
91 <field name="res_model">account.analytic.account</field>
92 <field name="view_type">form</field>
93 <field name="view_mode">tree,form</field>
94 <field name="domain">[('date','<',time.strftime('%Y-%m-%d %H:%M:%S'))]</field>
95 <field name="filter" eval="True"/>
98 <record id="action_account_analytic_account_tree2" model="ir.actions.act_window">
99 <field name="name">Chart of Analytic Accounts</field>
100 <field name="res_model">account.analytic.account</field>
101 <field name="view_type">tree</field>
102 <field name="view_id" ref="view_account_analytic_account_tree"/>
103 <field name="domain">[('parent_id','=',False)]</field>
104 <field name="help" type="html">
106 Click to add a new analytic account.
108 The normal chart of accounts has a structure defined by the
109 legal requirement of the country. The analytic chart of
110 accounts structure should reflect your own business needs in
111 term of costs/revenues reporting.
113 They are usually structured by contracts, projects, products or
114 departements. Most of the OpenERP operations (invoices,
115 timesheets, expenses, etc) generate analytic entries on the
122 <record id="view_account_analytic_line_form" model="ir.ui.view">
123 <field name="name">account.analytic.line.form</field>
124 <field name="model">account.analytic.line</field>
125 <field name="priority">1</field>
126 <field name="arch" type="xml">
127 <form string="Analytic Entry" version="7.0">
131 <field name="account_id"/>
132 <field name="journal_id"/>
137 <field name="company_id" groups="base.group_multi_company"/>
139 <group string="Amount">
140 <field name="amount"/>
141 <label for="amount_currency" groups="base.group_multi_currency"/>
142 <div groups="base.group_multi_currency">
143 <field name="amount_currency" class="oe_inline"/>
144 <field name="currency_id" class="oe_inline"/>
147 <group string="Product Information">
148 <field name="product_id" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id, journal_id)"/>
149 <label for="unit_amount"/>
151 <field name="unit_amount" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)" class="oe_inline"/>
152 <field name="product_uom_id" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)" class="oe_inline"/>
155 <group string="General Accounting">
156 <field name="general_account_id"/>
157 <field name="move_id" readonly="1"/>
163 <record id="view_account_analytic_line_tree" model="ir.ui.view">
164 <field name="name">account.analytic.line.tree</field>
165 <field name="model">account.analytic.line</field>
166 <field name="arch" type="xml">
167 <tree string="Analytic Entries">
169 <field name="ref" invisible="context.get('to_invoice', False)"/>
171 <field name="journal_id" invisible="context.get('to_invoice', False)"/>
172 <field name="amount" sum="Total" invisible="context.get('to_invoice', False)"/>
173 <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)"/>
174 <field name="unit_amount" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)" sum="Total Quantity"/>
175 <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)"/>
176 <field domain="[('type','=','normal')]" name="account_id"/>
177 <field name="general_account_id" invisible="context.get('to_invoice', False)"/>
178 <field name="user_id" invisible="1" />
179 <field name="company_id" groups="base.group_multi_company"/>
183 <record id="view_account_analytic_line_filter" model="ir.ui.view">
184 <field name="name">account.analytic.line.select</field>
185 <field name="model">account.analytic.line</field>
186 <field name="arch" type="xml">
187 <search string="Search Analytic Lines">
188 <field name="name" string="Analytic Line"/>
190 <filter name="sales" string="Sales" domain="[('journal_id.type','=','sale')]" help="Analytic Journal Items related to a sale journal."/>
191 <filter name="purchases" string="Purchases" domain="[('journal_id.type','=','purchase')]" help="Analytic Journal Items related to a purchase journal."/>
192 <filter name="others" string="Others" domain="[('journal_id.type','in',('cash','general','situation'))]"/>
194 <filter string="My Entries" domain="[('user_id','=',uid)]"/>
195 <field name="account_id"/>
196 <field name="user_id"/>
197 <group string="Group By..." expand="0">
198 <filter string="Analytic Account" context="{'group_by':'account_id'}"/>
199 <filter string="Fin. Account" context="{'group_by':'general_account_id'}"/>
200 <filter string="Journal" context="{'group_by':'journal_id'}" name="group_journal"/>
202 <filter string="Product" context="{'group_by':'product_id'}"/>
203 <filter string="User" context="{'group_by':'user_id'}"/>
205 <filter string="Date" context="{'group_by':'date'}" name="group_date"/>
211 <record id="action_account_analytic_line_form" model="ir.actions.act_window">
212 <field name="name">Analytic Entries</field>
213 <field name="type">ir.actions.act_window</field>
214 <field name="res_model">account.analytic.line</field>
215 <field name="view_type">form</field>
216 <field name="context">{"search_default_user_id":uid}</field>
217 <field name="view_id" ref="view_account_analytic_line_tree"/>
220 <!-- Entries by Line -->
222 <record id="action_account_tree1" model="ir.actions.act_window">
223 <field name="name">Analytic Items</field>
224 <field name="res_model">account.analytic.line</field>
225 <field name="view_type">form</field>
226 <field name="view_mode">tree,form</field>
227 <field name="domain">[('account_id','child_of',[active_id])]</field>
228 <field name="context">{'account_id':active_id}</field>
229 <field name="search_view_id" ref="view_account_analytic_line_filter"/>
231 <record id="ir_open_account_analytic_account" model="ir.values">
232 <field eval="'tree_but_open'" name="key2"/>
233 <field eval="'account.analytic.account'" name="model"/>
234 <field name="name">Open Account Tree</field>
235 <field eval="'ir.actions.act_window,%d'%action_account_tree1" name="value"/>
238 <record id="account_analytic_line_extended_form" model="ir.ui.view">
239 <field name="name">account.analytic.line.extended_form</field>
240 <field name="model">account.analytic.line</field>
241 <field name="arch" type="xml">
242 <form string="Project line" version="7.0">
246 <field name="account_id"/>
247 <field name="journal_id"/>
250 <field name="date" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)"/>
251 <field name="company_id" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)"/>
253 <group string="Amount">
254 <field name="amount"/>
255 <label for="amount_currency" groups="base.group_multi_currency"/>
256 <div groups="base.group_multi_currency">
257 <field name="amount_currency" class="oe_inline"/>
258 <field name="currency_id" class="oe_inline"/>
260 <field invisible="1" name="general_account_id"/>
262 <group string="Product Information">
263 <field name="product_id" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id, journal_id)"/>
264 <label for="unit_amount"/>
266 <field name="unit_amount" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)" class="oe_inline"/>
267 <field name="product_uom_id" on_change="on_change_unit_amount(product_id, unit_amount, company_id, product_uom_id)" class="oe_inline"/>
274 <record id="action_account_analytic_account_line_extended_form" model="ir.actions.act_window">
275 <field name="name">account.analytic.line.extended</field>
276 <field name="type">ir.actions.act_window</field>
277 <field name="res_model">account.analytic.line</field>
278 <field name="view_type">form</field>
279 <field name="view_id" ref="account_analytic_line_extended_form"/>
286 <record id="view_account_analytic_journal_tree" model="ir.ui.view">
287 <field name="name">account.analytic.journal.tree</field>
288 <field name="model">account.analytic.journal</field>
289 <field name="arch" type="xml">
290 <tree string="Analytic Journal">
298 <record id="view_analytic_journal_search" model="ir.ui.view">
299 <field name="name">account.analytic.journal.search</field>
300 <field name="model">account.analytic.journal</field>
301 <field name="arch" type="xml">
302 <search string="Analytic Journals">
303 <field name="name" filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]" string="Analytic Journal"/>
305 <group expand="0" string="Group By...">
306 <filter string="Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'type'}"/>
312 <record id="view_account_analytic_journal_form" model="ir.ui.view">
313 <field name="name">account.analytic.journal.form</field>
314 <field name="model">account.analytic.journal</field>
315 <field name="arch" type="xml">
316 <form string="Analytic Journal" version="7.0">
321 <field name="active"/>
322 <field name="company_id" groups="base.group_multi_company"/>
327 <record id="action_account_analytic_journal_form" model="ir.actions.act_window">
328 <field name="name">Analytic Journals</field>
329 <field name="res_model">account.analytic.journal</field>
330 <field name="view_type">form</field>
331 <field name="view_mode">tree,form</field>
332 <field name="search_view_id" ref="view_analytic_journal_search" />
334 <menuitem groups="analytic.group_analytic_accounting" action="action_account_analytic_journal_form" id="account_def_analytic_journal" parent="menu_analytic_accounting" sequence="5"/>
337 # Open journal entries
340 <record id="action_account_analytic_journal_open_form" model="ir.actions.act_window">
341 <field name="name">Analytic Journal Items</field>
342 <field name="res_model">account.analytic.line</field>
343 <field name="view_type">form</field>
344 <field name="view_mode">tree,form</field>
346 <menuitem groups="analytic.group_analytic_accounting"
347 action="action_account_analytic_journal_open_form"
348 id="account_analytic_journal_entries"
349 parent="menu_finance_entries"/>
356 <record id="view_account_journal_1" model="ir.ui.view">
357 <field name="name">account.journal.form.1</field>
358 <field name="model">account.journal</field>
359 <field name="inherit_id" ref="account.view_account_journal_form"/>
360 <field name="arch" type="xml">
361 <field name="type" position="after">
362 <field name="analytic_journal_id"/>