diff --git a/addons/mrp/static/src/widgets/timer.js b/addons/mrp/static/src/widgets/timer.js index dc5ac3fe109..feaedccb48b 100644 --- a/addons/mrp/static/src/widgets/timer.js +++ b/addons/mrp/static/src/widgets/timer.js @@ -67,7 +67,8 @@ export class MrpTimer extends Component { } get durationFormatted() { - if(this.props.value!=this.state.duration && this.props.record && !this.readonly){ + if(this.props.value!=this.state.duration && this.props.record && this.props.record.isDirty){ + if (typeof this.props.setDirty==='function')this.props.setDirty(false); this.state.duration=this.props.value } return formatMinutes(this.state.duration);