[REM] Removed useless argument causing problem in case of buggy load_state
[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='//field[@name="type"]' position='after'>
24                     <field name="template_id" on_change="on_change_template(template_id,context)"  domain="[('type','=','template')]" attrs="{'invisible': [('type','in',['view', 'normal','template'])]}" context="{'default_type' : 'template'}"/>
25                 </xpath>
26                 <xpath expr='//div[@name="duration"]' position="after" version="7.0">
27                     <label for="quantity_max"/>
28                     <div>
29                         <field name="quantity_max" class="oe_inline"/> / Remaining: <field name="remaining_hours" class="oe_inline"/> 
30                     </div>
31                 </xpath>
32                 <xpath expr='//group[@name="invoice_on_timesheets"]' position="replace">
33                     <group name='invoice_on_timesheets' string="Invoice on Timesheets Options" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}" col="4">
34                         <field name="pricelist_id" attrs="{'required': [('invoice_on_timesheets', '=', True)]}"/>
35                         <field name="to_invoice" widget="selection" attrs="{'required': [('invoice_on_timesheets', '=', True)]}"/>
36                     </group>
37                 </xpath>
38                 <xpath expr='//group[@name="master"]' position='after'>
39                     <separator name="toinvoice" string="Invoicing"/>
40                     <table width="100%%">
41                         <tr>
42                             <th></th>
43                             <th></th>
44                             <th><label string="Est.Tot"/></th>
45                             <th><label string="Invoiced"/></th>
46                             <th><label string="Remaining"/></th>
47                             <th><label string="To Invoice"/></th>
48                             <th></th>
49                         </tr><tr>
50                             <td>
51                                 <label for="fix_price_invoices"/>
52                             </td><td>
53                                 <field name="fix_price_invoices" class="oe_inline"/>
54                             </td><td>
55                                 <field class="oe_inline" name="amount_max" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
56                             </td><td>
57                                 <field class="oe_inline" name="ca_invoiced" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
58                             </td><td>
59                                 <field class="oe_inline" name="remaining_ca" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
60                             </td><td>
61                                 <field class="oe_inline" name="fix_price_to_invoice" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
62                             </td><td>
63                                 <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)]}"/>
64                                 <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)]}"/>
65                             </td>
66                         </tr><tr attrs="{'invisible':[('use_timesheets','=',False)]}">
67                             <td>
68                                 <label for="invoice_on_timesheets"/>
69                             </td><td>
70                                 <field name="invoice_on_timesheets"/>
71                             </td><td>
72                                 <field class="oe_inline" name="hours_qtt_est" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
73                             </td><td>
74                                 <field class="oe_inline" name="timesheet_ca_invoiced" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
75                             </td><td>
76                                 <field class="oe_inline" name="remaining_hours_to_invoice" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
77                             </td><td>
78                                 <field class="oe_inline" name="ca_to_invoice" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
79                             </td><td>
80                                 <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}"/>
81                                 <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)]}"/>
82                             </td>
83                         </tr><tr name='total'>
84                             <th>
85                                 <label string="Total"/>
86                             </th><td>
87                             </td><td>
88                                 <field name="est_total" class="oe_inline" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
89                             </td><td>
90                                 <field name="invoiced_total" class="oe_inline"/>
91                             </td><td>
92                                 <field name="remaining_total" class="oe_inline"/>
93                             </td><td>
94                                 <field name="toinvoice_total" class="oe_inline"/>
95                             </td><td>
96                             </td>
97                         </tr>
98                     </table>
99                  </xpath>
100             </field>
101         </record>
102
103         <record id="view_account_analytic_account_tree_c2c_3" model="ir.ui.view">
104             <field name="name">account.analytic.account.tree</field>
105             <field name="model">account.analytic.account</field>
106             <field name="inherit_id" ref="account.view_account_analytic_account_list"/>
107             <field name="type">tree</field>
108             <field name="arch" type="xml">
109                 <field name="date" position="before">
110                     <field name="last_invoice_date"/>
111                     <field name="toinvoice_total"/>
112                 </field>
113             </field>
114         </record>
115
116         <record id="template_of_contract_action" model="ir.actions.act_window">
117             <field name="name">Template of Contract</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">[('type','=','template')]</field>
123             <field name="context">{'search_default_type':'template','default_type' : 'template'}</field>
124         </record>
125         <menuitem action="template_of_contract_action" id="menu_template_of_contract_action" parent="base.menu_base_config"/>
126     </data>
127 </openerp>