1 <?xml version="1.0" encoding="utf-8"?>
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="total"]' position='before'>
12 <field class="oe_field_label" name="charge_expenses"/>
13 <group colspan="4" col="6" attrs="{'invisible': [('charge_expenses','=',False)]}">
14 <field class="oe_float_field" name="est_expenses" nolabel="1" />
15 <field class="oe_float_field" name="expense_invoiced" nolabel="1"/>
16 <field class="oe_float_field" name="remaining_expense" nolabel="1" />
17 <field class="oe_float_field" name="expense_to_invoice" nolabel="1" />
18 <div><button class="oe_btn_width_small" icon="gtk-select-all" name="open_hr_expense" string="Expenses" type="object" /></div>
19 <div><button class="oe_btn_width" icon="terp-dolar" name="hr_to_invoiced_expense" string="Invoice Expenses" type="object"/></div>
25 <!--<record id="project_form_expense_form" model="ir.ui.view">
26 <field name="name">project.project.form.expense.inherit</field>
27 <field name="model">project.project</field>
28 <field name="type">form</field>
29 <field name="inherit_id" ref="analytic_contract_project.project_account_analytic_account_form"/>
30 <field eval="20" name="priority"/>
31 <field name="arch" type="xml">
32 <xpath expr='//div[@name="end_of_tabl_hook"]' position='before'>
34 <th class="oe_border_right">Charge Expenses</th>
35 <td><field name="charge_expenses" nolabel="1"/></td>
36 <td><field class="oe_th_110px" name="est_expenses" nolabel="1" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
37 <td class="oe_th_110px"><field name="expense_invoiced" nolabel="1" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
38 <td class="oe_th_110px oe_border_right"><field name="remaining_expense" nolabel="1" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
39 <td class="oe_th_110px"><field name="expense_to_invoice" nolabel="1" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
40 <td width="10px"></td>
41 <td><button icon="gtk-select-all" class= "oe_btn_width" name="open_hr_expense" string="Expenses" type="object" attrs="{'invisible': [('charge_expenses','=',0)]}"/></td>
42 <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>