[IMP]:added icons on buttons.
[odoo/odoo.git] / addons / project_timesheet / project_timesheet_view.xml
index 4801541..e04e4ea 100644 (file)
@@ -9,25 +9,11 @@
             <field name="arch" type="xml">
                 <xpath expr='//tr[@name="use_tasks_row"]' position='after'>
                     <tr name="use_timesheets_row">
-                        <td>
-                            <group class="oe_form_group_label_border">
-                                <field name="use_timesheets"/>
-                            </group>
-                        </td>
-                        <td style="text-align:right;"><button class="oe_btn_width" name="open_timesheets" string="Timesheets" type="object" attrs="{'invisible':[('use_timesheets','=', 0)]}"/></td>
+                        <th style="border-right:1px solid #DDD;" width="140px">Timesheets</th>
+                        <td><field name="use_timesheets" nolabel="1"/></td>
+                        <td style="text-align:right;"><button icon="terp-go-week" class="oe_btn_width" name="open_timesheets" string="Timesheets" type="object" attrs="{'invisible':[('use_timesheets','=', 0)]}"/></td>
                     </tr>
                 </xpath>
-                <field name="warn_customer" position="after">
-                    <group colspan="4" col="4">
-                        <separator colspan="4" string="Invoicing Data"/>
-                        <field name="pricelist_id" groups="product.group_sale_pricelist" domain="[('type','=','sale')]" widget="selection"/>
-                        <field name="to_invoice" widget="selection" string="Invoice Task Work"/>
-                        <field name="amount_max"/>
-                        <field name="amount_invoiced"/>
-                        <field name="amount_to_invoice" invisible="True"/>
-                        <field name="time_to_invoice" invisible="True"/>
-                    </group>
-                </field>
             </field>
         </record>