diff options
| author | Foram Shah <fsh@odoo.com> | 2016-05-03 18:49:29 +0530 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2016-05-24 13:47:48 +0200 |
| commit | 658f407f424dbee38903f745c7aade34afd9e454 (patch) | |
| tree | 5f12192db3c73b84f992996eb023be72429e6d16 /addons/web/static/src/js/widgets/progress_bar.js | |
| parent | ecd53f462cd5656e256144d7cc67a8ffafd0f13e (diff) | |
[IMP] hr_timesheet,web: Improve the Progress (%) bar on the tasks time management
1. Rename "Progress (%)" into "Working Time Recorded"
2. Remove tooltip.
3. It should always indicate the exact percentage :
a. if 2 hours planned and 2 hours consumed = 100%
b. if 2 hours planned and 3 hours consumed= 150%
c. in both cases the progression bar should simply stay full.
4. Consider sub task hours
Diffstat (limited to 'addons/web/static/src/js/widgets/progress_bar.js')
| -rw-r--r-- | addons/web/static/src/js/widgets/progress_bar.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/widgets/progress_bar.js b/addons/web/static/src/js/widgets/progress_bar.js index 6ccd1e74f28..265388aab7c 100644 --- a/addons/web/static/src/js/widgets/progress_bar.js +++ b/addons/web/static/src/js/widgets/progress_bar.js @@ -118,7 +118,7 @@ var ProgressBar = Widget.extend({ if(value <= max_value) { widthComplete = value/max_value * 100; } else { - widthComplete = max_value/value * 100; + widthComplete = 100; } this.$('.o_progress').toggleClass('o_progress_overflow', value > max_value); |
