diff options
| author | Haresh Shyara <hsh@odoo.com> | 2016-09-23 14:31:56 +0530 |
|---|---|---|
| committer | Josse Colpaert <jco@odoo.com> | 2016-09-28 20:54:14 +0200 |
| commit | 2eef1aa8393676797abf988d80ceebff766a6e50 (patch) | |
| tree | e0c29164e057ad895f691ef7c9df66b67da4a02f | |
| parent | 178e7439eadf0446d70600bf38880b546c068b15 (diff) | |
[IMP] mrp: timer duration improvement
| -rw-r--r-- | addons/mrp/static/src/js/mrp.js | 2 |
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() { |
