Files
odoo_source/addons/web/static
Odoo's Mergebot 30d1222d11 [MERGE] hr_timesheet: clean durations expressed in hours if encoding unit is in days
Purpose
=======

There are several places where the duration is expressed in hours even though the encoding unit is in Days.

Specifications
===========

The duration should be expressed in days instead of hours in the following places:
 [x]    Timesheet Entries
 [x]    Portal > Tickets
 [x]    Portal > Timesheets
 [x]    Portal > Tasks
 [x]    Portal > Sales Orders
 [x]    Project Overview
 [x]    Project task form view (in this case, the label of the field should be 'Planned Days')
 [x]    Timesheets > HR Timesheet/Attendence Report
 [x]    Project > All Tasks

Hide the following elements if the encoding unit is in days:
 [x]    'Timesheet Timer' feature on the project form view
 [x]    'Timesheet Timer' feature on the Helpdesk team form view
 [x]    the 'Round timesheets' feature in the settings of Timesheets (except if the 'Awesome Timesheet' feature is enabled)

Bonus point:
 [x]    Timesheet form view: 0.00 Days should be displayed in read-only if the duration = 0

 Some labels need to be adapted to explicit the unit of measure (is it carrots? potatoes?): e.g. Duration (Days) or Time Spent (Hours) :
 [x]    Timesheet entries report
 [x]    on the portal
 [x]    Project overview: add 'recorded' next to Hours/Days
 [x]    Project overview: add 'Days/hours Spent' above the total by employee
 [x]    task form view: make sure the 'sub-tasks days spent' button/label stays on one line

 [x]    hide the 'start' button on project tasks and helpdesk tickets if the encoding unit is in days

Task ID : 2152322

closes odoo/odoo#46184

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-03 15:32:46 +02:00
..
…
…