[FIX] trigger DOM blur event on searchview root to allow autocomplete to close-on...
[odoo/odoo.git] / addons / account_analytic_analysis / account_analytic_analysis_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4
5         <!--
6         Analytic Account form
7         -->
8
9         <act_window
10             id="action_sales_order"
11             name="Sales Orders"
12             res_model="sale.order"
13             src_model="account.analytic.account"
14         />
15
16         <record id="account_analytic_account_form_form" model="ir.ui.view">
17             <field name="name">account.analytic.account.invoice.form.inherit</field>
18             <field name="model">account.analytic.account</field>
19             <field name="type">form</field>
20             <field name="inherit_id" ref="analytic.view_account_analytic_account_form"/>
21             <field eval="40" name="priority"/>
22             <field name="arch" type="xml">
23                 <xpath expr='//div[@name="duration"]' position="after" version="7.0">
24                     <label for="quantity_max"/>
25                     <div>
26                         <field name="quantity_max" class="oe_inline"/> / Remaining: <field name="remaining_hours" class="oe_inline"/> 
27                     </div>
28                 </xpath>
29                 <xpath expr='//group[@name="invoice_on_timesheets"]' position="replace">
30                     <group name='invoice_on_timesheets' string="Invoice on Timesheets Options" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}" col="4">
31                         <field name="pricelist_id" attrs="{'required': [('invoice_on_timesheets', '=', True)]}"/>
32                         <field name="to_invoice" widget="selection" attrs="{'required': [('invoice_on_timesheets', '=', True)]}"/>
33                     </group>
34                 </xpath>
35                 <xpath expr='//group[@name="master"]' position='after'>
36                     <separator name="toinvoice" string="Invoicing"/>
37                     <table width="100%%">
38                         <tr>
39                             <th></th>
40                             <th></th>
41                             <th><label string="Est.Tot"/></th>
42                             <th><label string="Invoiced"/></th>
43                             <th><label string="Remaining"/></th>
44                             <th><label string="To Invoice"/></th>
45                             <th></th>
46                         </tr><tr>
47                             <td>
48                                 <label for="fix_price_invoices"/>
49                             </td><td>
50                                 <field name="fix_price_invoices" class="oe_inline"/>
51                             </td><td>
52                                 <field class="oe_inline" name="amount_max" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
53                             </td><td>
54                                 <field class="oe_inline" name="ca_invoiced" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
55                             </td><td>
56                                 <field class="oe_inline" name="remaining_ca" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
57                             </td><td>
58                                 <field class="oe_inline" name="fix_price_to_invoice" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
59                             </td><td>
60                                 <button name="%(action_sales_order)d" string="All Sales" type="action" context="{'default_partner_id': [partner_id], 'search_default_partner_id': [partner_id],'search_default_project_id': [active_id],'default_project_id': [active_id]}" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
61                                 <button name="open_sale_order_lines" string="Lines To Invoice" type="object" context="{'default_partner_id': [partner_id],'default_project_id': active_id,'search_default_uninvoiced': 1,'search_default_project_id': active_id,'search_default_partner_id': [partner_id]}" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
62                             </td>
63                         </tr><tr attrs="{'invisible':[('use_timesheets','=',False)]}">
64                             <td>
65                                 <label for="invoice_on_timesheets"/>
66                             </td><td>
67                                 <field name="invoice_on_timesheets"/>
68                             </td><td>
69                                 <field class="oe_inline" name="hours_qtt_est" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
70                             </td><td>
71                                 <field class="oe_inline" name="timesheet_ca_invoiced" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
72                             </td><td>
73                                 <field class="oe_inline" name="remaining_hours_to_invoice" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
74                             </td><td>
75                                 <field class="oe_inline" name="ca_to_invoice" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
76                             </td><td>
77                                 <button name="%(hr_timesheet.act_hr_timesheet_line_evry1_all_form)d" string="All Timesheets" type="action" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}" context="{'default_account_id': active_id,'search_default_account_id': active_id}"/>
78                                 <button name="%(hr_timesheet_invoice.act_acc_analytic_acc_2_report_acc_analytic_line_to_invoice)d" string="Timesheets to Invoice" type="action" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
79                             </td>
80                         </tr><tr name='total'>
81                             <th>
82                                 <label string="Total"/>
83                             </th><td>
84                             </td><td>
85                                 <field name="est_total" class="oe_inline" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
86                             </td><td>
87                                 <field name="invoiced_total" class="oe_inline"/>
88                             </td><td>
89                                 <field name="remaining_total" class="oe_inline"/>
90                             </td><td>
91                                 <field name="toinvoice_total" class="oe_inline"/>
92                             </td><td>
93                             </td>
94                         </tr>
95                     </table>
96                  </xpath>
97             </field>
98         </record>
99
100         <record id="view_account_analytic_account_tree_c2c_3" model="ir.ui.view">
101             <field name="name">account.analytic.account.tree</field>
102             <field name="model">account.analytic.account</field>
103             <field name="inherit_id" ref="account.view_account_analytic_account_list"/>
104             <field name="type">tree</field>
105             <field name="arch" type="xml">
106                 <field name="date" position="before">
107                     <field name="last_invoice_date"/>
108                     <field name="toinvoice_total"/>
109                 </field>
110             </field>
111         </record>
112
113         <record id="template_of_contract_action" model="ir.actions.act_window">
114             <field name="name">Template of Contract</field>
115             <field name="type">ir.actions.act_window</field>
116             <field name="res_model">account.analytic.account</field>
117             <field name="view_type">form</field>
118             <field name="view_mode">tree,form</field>
119             <field name="domain">[('type','=','template')]</field>
120             <field name="context">{'search_default_type':'template','default_type' : 'template'}</field>
121         </record>
122         <menuitem action="template_of_contract_action" id="menu_template_of_contract_action" parent="base.menu_base_config"/>
123     </data>
124 </openerp>