[FIX] hr_timesheet_sheet: set timesheet widget dirty when editing
Without this commit, there was no warning displayed when clicking on a button that would make the user lose all he entered in the widget, which is insonsistent with other odoo widgets. opw-684276
This commit is contained in:
parent
337049baa8
commit
7f86272b94
|
@ -177,6 +177,7 @@ openerp.hr_timesheet_sheet = function(instance) {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
is_valid_value:function(value){
|
is_valid_value:function(value){
|
||||||
|
this.view.do_notify_change();
|
||||||
var split_value = value.split(":");
|
var split_value = value.split(":");
|
||||||
var valid_value = true;
|
var valid_value = true;
|
||||||
if (split_value.length > 2)
|
if (split_value.length > 2)
|
||||||
|
|
Loading…
Reference in New Issue