[IMP] mrp: timer duration improvement

This commit is contained in:
Haresh Shyara
2016-09-28 20:54:14 +02:00
committed by Josse Colpaert
parent 178e7439ea
commit 2eef1aa839
+1 -1
View File
@@ -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() {