improve config wizard labels
[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
5         <record id="project_account_analytic_account_form" model="ir.ui.view">
6             <field name="name">project.project.form.inherit</field>
7             <field name="model">project.project</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                                 <label for="date_start" string="Duration"/>
16                                 <div name="duration">
17                                     <field name="date_start" class="oe_inline"/> 
18                                     <label attrs="{'invisible':[('date','=',False)]}" class="oe_inline" string=" - "/>
19                                     <field name="date" class="oe_inline"/>
20                                 </div>
21                                 <label for="quantity_max"/>
22                                 <div>
23                                     <field name="quantity_max" class="oe_inline"/>
24                                     <field name="company_uom_id" readonly="1" class="oe_inline"/> / Remaining: 
25                                     <field name="remaining_hours" class="oe_inline"/> 
26                                     <field name="company_uom_id" readonly="1" class="oe_inline"/>
27                                 </div>
28                             </group>
29                             <group string="Invoice Options">
30                                 <field name="manager_id" />
31                                 <field name="pricelist_id" attrs="{'invisible': [('invoice_on_timesheets','=',0)]}"/>
32                                 <field name="to_invoice" widget="selection" attrs="{'invisible': [('invoice_on_timesheets','=',0)]}"/>
33                             </group>
34                         </group>
35                     <separator name="toinvoice" string="Invoicing"/>
36                     <table width="100%%">
37                         <tr>
38                             <th></th>
39                             <th></th>
40                             <th><label string="Est.Tot"/></th>
41                             <th><label string="Invoiced"/></th>
42                             <th><label string="Remaining"/></th>
43                             <th><label string="To Invoice"/></th>
44                             <th></th>
45                         </tr><tr>
46                             <td>
47                                 <label for="fix_price_invoices"/>
48                             </td><td>
49                                 <field name="fix_price_invoices" class="oe_inline"/>
50                             </td><td>
51                                 <field class="oe_inline" name="amount_max" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
52                             </td><td>
53                                 <field class="oe_inline" name="ca_invoiced" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
54                             </td><td>
55                                 <field class="oe_inline" name="remaining_ca" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
56                             </td><td>
57                                 <field class="oe_inline" name="fix_price_to_invoice" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
58                             </td><td>
59                                 <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], 'default_project_id': analytic_account_id, 'search_default_project_id': analytic_account_id}" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
60                                 <button name="open_sale_order_lines" string="Lines To Invoice" type="object" context="{'default_partner_id': [partner_id],'default_project_id': analytic_account_id,'search_default_uninvoiced': 1,'search_default_project_id': analytic_account_id,'search_default_partner_id': [partner_id]}" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/></td>
61                         </tr><tr attrs="{'invisible':[('use_timesheets','=',False)]}">
62                             <td>
63                                 <label for="invoice_on_timesheets"/>
64                             </td><td>
65                                 <field name="invoice_on_timesheets"/>
66                             </td><td>
67                                 <field class="oe_inline" name="hours_qtt_est" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
68                             </td><td>
69                                 <field class="oe_inline" name="timesheet_ca_invoiced" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
70                             </td><td>
71                                 <field class="oe_inline" name="remaining_hours_to_invoice" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
72                             </td><td>
73                                 <field class="oe_inline" name="ca_to_invoice" attrs="{'invisible': [('fix_price_invoices','=',False)]}"/>
74                             </td><td>
75                                 <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': analytic_account_id,'search_default_account_id': analytic_account_id}"/>
76                                 <button name="open_timesheets_to_invoice" string="Timesheets to Invoice" type="object" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
77                             </td>
78                         </tr><tr name="total">
79                             <th>
80                                 <label string="Total"/>
81                             </th><td>
82                             </td><td>
83                                 <field name="est_total" class="oe_inline" attrs="{'invisible': [('invoice_on_timesheets','=',False)]}"/>
84                             </td><td>
85                                 <field name="invoiced_total" class="oe_inline"/>
86                             </td><td>
87                                 <field name="remaining_total" class="oe_inline"/>
88                             </td><td>
89                                 <field name="toinvoice_total" class="oe_inline"/>
90                             </td><td>
91                             </td>
92                         </tr>
93                     </table>
94                     <separator string="Terms and Conditions" name="description"/>
95                     <field name="description"/>
96                     </page>
97                 </xpath>
98             </field>
99         </record>
100
101         <record id="project_invoice_form" model="ir.ui.view">
102             <field name="name">Inherit project form : Invoicing Data</field>
103             <field name="model">project.project</field>
104             <field name="inherit_id" ref="project.edit_project"/>
105             <field name="arch" type="xml">
106                 <xpath expr='//tr[@name="use_tasks_row"]' position='after'>
107                     <tr>
108                         <td><group><field name="use_timesheets"/></group></td>
109                         <td><button icon="terp-gtk-go-back-rtl" name="open_timesheets" string="Timesheets" type="object" attrs="{'invisible':[('use_timesheets','=', 0)]}"/></td>
110                     </tr>
111                 </xpath>
112             </field>
113         </record>
114
115         <record id="contract_inherited_form" model="ir.ui.view">
116             <field name="name">Inherit contract form : adding UoM</field>
117             <field name="model">account.analytic.account</field>
118             <field name="inherit_id" ref="analytic.view_account_analytic_account_form"/>
119             <field name="priority">50</field>
120             <field name="arch" type="xml">
121                 <xpath expr='//field[@name="remaining_hours"]' position='after'>
122                     <field name="company_uom_id" readonly="1" class="oe_inline"/>
123                 </xpath>
124             </field>
125         </record>
126     </data>
127 </openerp>