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