summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaresh Shyara <hsh@odoo.com>2016-09-23 14:31:56 +0530
committerJosse Colpaert <jco@odoo.com>2016-09-28 20:54:14 +0200
commit2eef1aa8393676797abf988d80ceebff766a6e50 (patch)
treee0c29164e057ad895f691ef7c9df66b67da4a02f
parent178e7439eadf0446d70600bf38880b546c068b15 (diff)
[IMP] mrp: timer duration improvement
-rw-r--r--addons/mrp/static/src/js/mrp.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mrp/static/src/js/mrp.js b/addons/mrp/static/src/js/mrp.js
index 48d4a640c57..1f1a42f1950 100644
--- a/addons/mrp/static/src/js/mrp.js
+++ b/addons/mrp/static/src/js/mrp.js
@@ -38,7 +38,7 @@ var TimeCounter = common.AbstractField.extend(common.ReinitializeFieldMixin, {
},
start_time_counter: function(){
var self = this;
- this.timer = null;
+ clearTimeout(this.timer);
if (this.field_manager.datarecord.is_user_working) {
this.duration += 1000;
this.timer = setTimeout(function() {