cea5957347dd7a3c071d8b89bdf0d30c58a709ac
[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='before'>
12                     <page string="Contract Data">
13                                                 <group col="4" colspan="4">
14                                                         <group colspan="2" col= "2" class="oe_form_group_label_border">
15                                                                 <separator colspan="2" string="Validity"/>
16                                                                 <field name="date_start"/>
17                                                                 <field name="date"/>
18                                                                 <group col="6" colspan="2" class="oe_form_group_label_border">
19                                                                         <field name="quantity_max"/>
20                                                                         <field name="company_uom_id" nolabel="1" readonly="1"/>
21                                                                         <field name="remaining_hours" string="/ Remaining"/>
22                                                                 </group>
23                                                         </group>
24                                                         <group colspan="2" col= "2" class="oe_form_group_label_border">
25                                                                 <separator colspan="2" string="Invoice Rate"/>
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 colspan="4" string="Invoicing"/>
32                                                 <group col="1" colspan="4">
33                                                         <table border="0">
34                                                                 <tr>
35                                                                         <th class="oe_th_160px" height="20px"></th>
36                                                                         <th width="10px"></th>
37                                                                         <th class="oe_th_110px">Est.Tot</th>
38                                                                         <th class="oe_th_110px">Invoiced</th>
39                                                                         <th class="oe_th_110px">Remaining</th>
40                                                                         <th class="oe_th_110px">Ready To Invoice</th>
41                                                                         <th width="10px"></th>
42                                                                         <th></th>
43                                                                         <th></th>
44                                                                 </tr>
45                                                                 <tr>
46                                                                 <th class="oe_border_right">Fix Price Invoices</th>
47                                                                         <td><field name="fix_price_invoices" nolabel="1"/></td>
48                                                                         <td><field class="oe_th_110px" name="amount_max" nolabel="1" attrs="{'invisible': [('fix_price_invoices','=',0)]}"/></td>
49                                                                         <td class="oe_th_110px"><field name="ca_invoiced" nolabel="1" attrs="{'invisible': [('fix_price_invoices','=',0)]}"/></td>
50                                                                         <td class="oe_th_110px oe_border_right"><field name="remaining_ca" nolabel="1" attrs="{'invisible': [('fix_price_invoices','=',0)]}"/></td>
51                                                                         <td class="oe_th_110px"><field name="ca_to_invoice" nolabel="1" attrs="{'invisible': [('fix_price_invoices','=',0)]}"/></td>
52                                                                         <td width="10px"></td>
53                                                                         <td><button icon="terp-check" class= "oe_btn_width" name="%(account_analytic_analysis.action_sales_order_line)d" string="Sales" type="action" context="{'default_project_id': active_id,'search_default_project_id': active_id}" attrs="{'invisible': [('fix_price_invoices','=',0)]}"/></td>
54                                                                         <td><button icon="terp-dolar_ok!" class= "oe_btn_width" 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','=',0)]}"/></td>
55                                                                 </tr>
56                                                                 <tr>
57                                                                         <th class="oe_border_right">Invoice On Timesheets</th>
58                                                                         <td><field name="invoice_on_timesheets" nolabel="1"/></td>
59                                                                         <td><field class="oe_th_110px" name="quantity_max" nolabel="1" attrs="{'invisible': [('invoice_on_timesheets','=',0)]}"/></td>
60                                                                         <td class="oe_th_110px"><field name="hours_qtt_invoiced" nolabel="1" attrs="{'invisible': [('invoice_on_timesheets','=',0)]}"/></td>
61                                                                         <td class="oe_th_110px oe_border_right"><field name="remaining_hours" nolabel="1" attrs="{'invisible': [('invoice_on_timesheets','=',0)]}"/></td>
62                                                                         <td class="oe_th_110px"><field name="hours_qtt_non_invoiced" nolabel="1" attrs="{'invisible': [('invoice_on_timesheets','=',0)]}"/></td>
63                                                                         <td width="10px"></td>
64                                                                         <td><button icon="terp-go-week" class= "oe_btn_width" name="%(hr_timesheet.act_hr_timesheet_line_evry1_all_form)d" string="Timesheets" type="action" attrs="{'invisible': [('invoice_on_timesheets','=',0)]}"/></td>
65                                                                         <td><button icon="terp-dolar" class= "oe_btn_width" name="%(hr_timesheet_invoice.act_acc_analytic_acc_2_report_acc_analytic_line_to_invoice)d" string="Invoice Timesheets" type="action" attrs="{'invisible': [('invoice_on_timesheets','=',0)]}"/></td>
66                                                                 </tr>
67                                                                 <div name="end_of_tabl_hook"/>
68                                                                 <tr>
69                                                                         <th class="oe_border_right">Total</th>
70                                                                         <td width="10px"></td>
71                                                                         <td class="oe_th_110px oe_border_top"><field name="est_total" nolabel="1"/></td>
72                                                                         <td class="oe_th_110px oe_border_top"><field name="invoiced_total" nolabel="1"/></td>
73                                                                         <td class="oe_th_110px oe_border_right oe_border_top"><field name="remaining_total" nolabel="1"/></td>
74                                                                         <td class="oe_th_110px oe_border_top"><field name="toinvoice_total" nolabel="1"/></td>
75                                                                 </tr>
76                                                         </table>
77                                                 </group>
78                                                 <separator string="Terms and Conditions" colspan="4" name="description"/>
79                                                 <field colspan="4" name="description" nolabel="1"/>
80                                         </page>
81                                 </xpath>
82                         </field>
83         </record>
84     </data>
85 </openerp>