[IMP]improve view in contract
[odoo/odoo.git] / addons / analytic_contract_hr_expense / analytic_contract_hr_expense_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4         <record id="account_analytic_account_form_expense_form" model="ir.ui.view">
5             <field name="name">account.analytic.account.form.expense.inherit</field>
6             <field name="model">account.analytic.account</field>
7             <field name="type">form</field>
8             <field name="inherit_id" ref="analytic.view_account_analytic_account_form"/>
9             <field eval="20" name="priority"/>
10             <field name="arch" type="xml">
11                 <xpath expr='//div[@name="end_of_tabl_hook"]' position='before'>
12                         <tr>
13                             <th class="oe_th_160px oe_border_right">Charge Expenses</th>
14                             <td><field name="charge_expenses" nolabel="1"/></td>
15                             <td><field class="oe_th_90px" name="est_expenses" nolabel="1" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
16                             <td class="oe_th_90px"><field name="expense_invoiced" nolabel="1" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
17                             <td class="oe_th_90px oe_border_right"><field name="remaining_expense" nolabel="1" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
18                             <td class="oe_th_110px"><field name="expense_to_invoice" nolabel="1" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
19                             <td width="10px"></td>
20                             <td><button icon="gtk-select-all" class= "oe_btn_width_120px" name="open_hr_expense" string="Expenses" type="object" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
21                             <td><button icon="terp-dolar" class= "oe_btn_width" name="hr_to_invoiced_expense" string="Invoice Expenses" type="object" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
22                         </tr>
23                 </xpath>
24             </field>
25         </record>
26         
27         <!--<record id="project_form_expense_form" model="ir.ui.view">
28             <field name="name">project.project.form.expense.inherit</field>
29             <field name="model">project.project</field>
30             <field name="type">form</field>
31             <field name="inherit_id" ref="analytic_contract_project.project_account_analytic_account_form"/>
32             <field eval="20" name="priority"/>
33             <field name="arch" type="xml">
34                 <xpath expr='//div[@name="end_of_tabl_hook"]' position='before'>
35                         <tr>
36                             <th class="oe_border_right">Charge Expenses</th>
37                             <td><field name="charge_expenses" nolabel="1"/></td>
38                             <td><field class="oe_th_110px" name="est_expenses" nolabel="1" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
39                             <td class="oe_th_110px"><field name="expense_invoiced" nolabel="1" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
40                             <td class="oe_th_110px oe_border_right"><field name="remaining_expense" nolabel="1" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
41                             <td class="oe_th_110px"><field name="expense_to_invoice" nolabel="1" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
42                             <td width="10px"></td>
43                             <td><button icon="gtk-select-all" class= "oe_btn_width" name="open_hr_expense" string="Expenses" type="object" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
44                             <td><button icon="terp-dolar" class= "oe_btn_width" name="hr_to_invoiced_expense" string="Invoice Expenses" type="object" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
45                         </tr>
46                 </xpath>
47             </field>
48         </record>-->
49     </data>
50 </openerp>