[IMP] hr_timesheet_sheet: improve stat button in timesheet to show Number of hour
authorHitesh Trivedi <htr@openerp.com>
Wed, 3 Sep 2014 08:59:56 +0000 (14:29 +0530)
committerRichard Mathot <rim@openerp.com>
Wed, 1 Oct 2014 14:07:37 +0000 (16:07 +0200)
(cherry picked from commit fb0edc71c17df3224ba19c9193c58eca67be8ed0)
(closes #2617)

addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml

index 96de7a6..4b2e884 100644 (file)
@@ -75,7 +75,7 @@
                             name="%(act_hr_timesheet_sheet_sheet_2_hr_analytic_timesheet)d"
                             class="oe_stat_button"
                             icon="fa-clock-o">
-                            <field name="timesheet_activity_count" widget="statinfo" string="Timesheet" help="Timesheet Activities"/>
+                            <div><strong><field name="total_timesheet" widget="float_time"/></strong><br/>Timesheet</div>
                         </button>
                         <button type="action" groups="base.group_hr_attendance"
                             class="oe_stat_button" icon="fa-users"
@@ -98,7 +98,6 @@
                         </group>
                         <group groups="base.group_hr_attendance">
                             <field name="total_attendance" widget="float_time"/>
-                            <field name="total_timesheet" widget="float_time"/>
                             <field name="total_difference" widget="float_time"/>
                         </group>
                     </group>