[IMP] Clean Modules name: there are 3 modules named Contracts Management.
[odoo/odoo.git] / addons / analytic_contract_hr_expense / analytic_contract_hr_expense_view.xml
index 4599635..9c816b0 100644 (file)
@@ -5,19 +5,27 @@
             <field name="name">account.analytic.account.form.expense.inherit</field>
             <field name="model">account.analytic.account</field>
             <field name="type">form</field>
-            <field name="inherit_id" ref="analytic.view_account_analytic_account_form"/>
-            <field eval="20" name="priority"/>
+            <field eval="60" name="priority"/>
             <field name="arch" type="xml">
-                <xpath expr='//div[@name="total"]' position='before'>
-                        <field class="oe_field_label" name="charge_expenses"/>
-                         <group colspan="4" col="6" attrs="{'invisible': [('charge_expenses','=',False)]}">
-                            <field class="oe_float_field" name="est_expenses" nolabel="1" />
-                            <field class="oe_float_field" name="expense_invoiced" nolabel="1"/>
-                            <field class="oe_float_field" name="remaining_expense" nolabel="1" />
-                            <field class="oe_float_field" name="expense_to_invoice" nolabel="1" />
-                            <div><button class="oe_btn_width_small" icon="gtk-select-all" name="open_hr_expense" string="Expenses" type="object" /></div>
-                            <div><button class="oe_btn_width" icon="terp-dolar" name="hr_to_invoiced_expense" string="Invoice Expenses" type="object"/></div>
-                        </group>
+                <xpath expr='//tr[@name="total"]' position='before'>
+                    <tr>
+                        <td>
+                            <label for="charge_expenses"/>
+                        </td><td>
+                            <field name="charge_expenses"/>
+                        </td><td>
+                            <field class="oe_form_inline" name="est_expenses" attrs="{'invisible': [('charge_expenses','=',False)]}"/>
+                        </td><td>
+                            <field class="oe_form_inline" name="expense_invoiced" attrs="{'invisible': [('charge_expenses','=',False)]}"/>
+                        </td><td>
+                            <field class="oe_form_inline" name="remaining_expense" attrs="{'invisible': [('charge_expenses','=',False)]}"/>
+                        </td><td>
+                            <field class="oe_form_inline" name="expense_to_invoice" attrs="{'invisible': [('charge_expenses','=',False)]}"/>
+                        </td><td>
+                            <button name="open_hr_expense" string="All Expenses" type="object" attrs="{'invisible': [('charge_expenses','=',False)]}"/>
+                            <button name="hr_to_invoice_expense" string="Expenses to Invoice" type="object" attrs="{'invisible': [('charge_expenses','=',False)]}"/>
+                        </td>
+                    </tr>
                 </xpath>
             </field>
         </record>