[IMP]:improved report and fixed total_est
[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 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 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 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 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 <!--                                                            <tr>
68                                                                         <th class="oe_border_right">Charge Expenses</th>
69                                                                         <td><field name="charge_expenses" nolabel="1"/></td>
70                                                                         <td><field class="oe_th_110px" name="expense_max" nolabel="1" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
71                                                                         <td class="oe_th_110px"><field name="expense_invoiced" nolabel="1" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
72                                                                         <td class="oe_th_110px oe_border_right"><field name="remaining_expense" nolabel="1" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
73                                                                         <td class="oe_th_110px"><field name="expense_to_invoice" nolabel="1" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
74                                                                         <td width="10px"></td>
75                                                                         <td><button class= "oe_btn_width" name="account_analytic_analysis.open_hr_expense" string="Expenses" type="object" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
76                                                                         <td><button class= "oe_btn_width" name="account_analytic_analysis.hr_to_invoiced_expense" string="Invoice Expenses" type="object" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
77                                                                 </tr>-->
78                                                                 <tr>
79                                                                         <th class="oe_border_right">Total</th>
80                                                                         <td width="10px"></td>
81                                                                         <td class="oe_th_110px oe_border_top"><field name="est_total" nolabel="1"/></td>
82                                                                         <td class="oe_th_110px oe_border_top"><field name="invoiced_total" nolabel="1"/></td>
83                                                                         <td class="oe_th_110px oe_border_right oe_border_top"><field name="remaining_total" nolabel="1"/></td>
84                                                                         <td class="oe_th_110px oe_border_top"><field name="toinvoice_total" nolabel="1"/></td>
85                                                                 </tr>
86                                                         </table>
87                                                 </group>
88                                                 <separator string="Terms and Conditions" colspan="4" name="description"/>
89                                                 <field colspan="4" name="description" nolabel="1"/>
90                                         </page>
91                                 </xpath>
92                         </field>
93         </record>
94     </data>
95 </openerp>