[IMP]improve and clean hr_timesheet_sheet
authorSanjay Gohel (Open ERP) <sgo@tinyerp.com>
Thu, 21 Jun 2012 08:50:13 +0000 (14:20 +0530)
committerSanjay Gohel (Open ERP) <sgo@tinyerp.com>
Thu, 21 Jun 2012 08:50:13 +0000 (14:20 +0530)
bzr revid: sgo@tinyerp.com-20120621085013-sz80dz60mq18f0jn

addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml

index 1eb0bff..1486a34 100644 (file)
                     <h1><field name="employee_id" on_change="onchange_employee_id(employee_id)"/></h1>
                     <label for="date_from" class="oe_edit_only" string="Timesheet Period"/>
                     <h2>
-                        From <field name="date_from"/>
+                        From <field name="date_from" />
                         to <field name="date_to"/>
                     </h2>
                     <group col="4">
-                        <field name="name"/>
-                        <field name="department_id"/>
-                        <field name="company_id" groups="base.group_multi_company"/>
-                        <field name="user_id" invisible="1"/>
+                        <field name="name" class="oe_edit_only"/>
+                        <field name="department_id" class="oe_edit_only"/>
+                        <field name="company_id" groups="base.group_multi_company" class="oe_edit_only"/>
+                        <field name="user_id" invisible="1" class="oe_edit_only"/>
                     </group>
                     <notebook>
                         <page string="Daily">
                                 </tree>
                             </field>
                             <group colspan="4" col="6">
-                                <field name="total_attendance" widget="float_time"/>
-                                <field name="total_timesheet" widget="float_time"/>
-                                <field name="total_difference" widget="float_time"/>
+                                <field name="total_attendance" widget="float_time" class="oe_edit_only"/>
+                                <field name="total_timesheet" widget="float_time" class="oe_edit_only"/>
+                                <field name="total_difference" widget="float_time" class="oe_edit_only"/>
                             </group>
                         </page>
                     </notebook>