[FIX] analytic_contract_hr_expense: fixed bad merge made in previous commit
[odoo/odoo.git] / addons / analytic_contract_project / analytic_contract_project_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4         <record id="project_account_analytic_account_form" model="ir.ui.view">
5             <field name="name">project.project.form.inherit</field>
6             <field name="model">project.project</field>
7             <field name="type">form</field>
8             <field name="inherit_id" ref="project.edit_project"/>
9             <field eval="18" name="priority"/>
10             <field name="arch" type="xml">
11                 <xpath expr='//page[@name="team"]' position='after'>
12                     <page string="Contract Data">
13                         <group>
14                             <group string="Validity">
15                                 <field name="date_start"/>
16                                 <field name="date"/>
17                                 <label for="quantity_max"/>
18                                 <div>
19                                     <field name="quantity_max" class="oe_form_inline"/>
20                                     <field name="company_uom_id" readonly="1" class="oe_form_inline"/> / Remaining: 
21                                     <field name="remaining_hours" class="oe_form_inline"/>
22                                     <field name="company_uom_id" readonly="1" class="oe_form_inline"/>
23                                 </div>
24                             </group>
25                             <group string="Invoice Options">
26                                 <field name="manager_id" />
27                                 <field name="pricelist_id" attrs="{'invisible': [('invoice_on_timesheets','=',0)]}"/>
28                                 <field name="to_invoice" widget="selection" attrs="{'invisible': [('invoice_on_timesheets','=',0)]}"/>
29                             </group>
30                         </group>
31                     <separator name="toinvoice" string="Invoicing"/>
32                     <table width="100%%">
33                         <tr>
34                             <th></th>
35                             <th></th>
36                             <th><label string="Est.Tot"/></th>
37                             <th><label string="Invoiced"/></th>
38                             <th><label string="Remaining"/></th>
39                             <th><label string="To Invoice"/></th>
40                             <th></th>
41                         </tr><tr>
42                             <td>
43                                 <label for="fix_price_invoices"/>
44                             </td><td>
45                                 <field name="fix_price_invoices" class="oe_form_inline"/>
46                             </td><td>
47                                 <field class="oe_form_inline" name="amount_max" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
48                             </td><td>
49                                 <field class="oe_form_inline" name="ca_invoiced" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
50                             </td><td>
51                                 <field class="oe_form_inline" name="remaining_ca" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
52                             </td><td>
53                                 <field class="oe_form_inline" name="ca_to_invoice" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
54                             </td><td>
55                                 <button name="%(account_analytic_analysis.action_sales_order)d" string="All Sales" type="action" context="{'default_partner_id': [partner_id], 'search_default_partner_id': [partner_id]}" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
56                                 <button name="%(sale.action_order_line_tree2)d" string="Lines To Invoice" type="action" context="{'default_project_id': active_id,'search_default_project_id': active_id}" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/></td>
57                         </tr><tr nameattrs="{'invisible':[('use_timesheets','=',False)]}">
58                             <td>
59                                 <label for="invoice_on_timesheets"/>
60                             </td><td>
61                                 <field name="invoice_on_timesheets"/>
62                             </td><td>
63                                 <field class="oe_form_inline" name="hours_qtt_est" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
64                             </td><td>
65                                 <field class="oe_form_inline" name="hours_qtt_invoiced" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
66                             </td><td>
67                                 <field class="oe_form_inline" name="remaining_hours_to_invoice" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
68                             </td><td>
69                                 <field class="oe_form_inline" name="hours_qtt_non_invoiced" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
70                             </td><td>
71                                 <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}"/>
72                                 <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)]}"/>
73                             </td>
74                         </tr><tr>
75                             <th>
76                                 <label string="Total"/>
77                             </th><td>
78                             </td><td>
79                                 <field name="est_total" class="oe_form_inline" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
80                             </td><td>
81                                 <field name="invoiced_total" class="oe_form_inline"/>
82                             </td><td>
83                                 <field name="remaining_total" class="oe_form_inline"/>
84                             </td><td>
85                                 <field name="toinvoice_total" class="oe_form_inline"/>
86                             </td><td>
87                             </td>
88                         </tr>
89                     </table>
90                     <separator string="Terms and Conditions" name="description"/>
91                     <field name="description"/>
92                     </page>
93                 </xpath>
94             </field>
95         </record>
96
97         <record id="project_invoice_form" model="ir.ui.view">
98             <field name="name">Inherit project form : Invoicing Data</field>
99             <field name="model">project.project</field>
100             <field name="type">form</field>
101             <field name="inherit_id" ref="project.edit_project"/>
102             <field name="arch" type="xml">
103                 <xpath expr='//tr[@name="use_tasks_row"]' position='after'>
104                     <tr>
105                         <td><group><field name="use_timesheets"/></group></td>
106                         <td><button icon="terp-gtk-go-back-rtl" name="open_timesheets" string="Timesheets" type="object" attrs="{'invisible':[('use_timesheets','=', 0)]}"/></td>
107                     </tr>
108                 </xpath>
109             </field>
110         </record>
111     </data>
112 </openerp>