From 7f86272b94b26b68aa1be3933d042efd9fd53008 Mon Sep 17 00:00:00 2001 From: Jeremy Kersten Date: Tue, 26 Jul 2016 16:15:47 +0200 Subject: [PATCH] [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 --- addons/hr_timesheet_sheet/static/src/js/timesheet.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/hr_timesheet_sheet/static/src/js/timesheet.js b/addons/hr_timesheet_sheet/static/src/js/timesheet.js index ca949937879..9c7750b0002 100644 --- a/addons/hr_timesheet_sheet/static/src/js/timesheet.js +++ b/addons/hr_timesheet_sheet/static/src/js/timesheet.js @@ -177,6 +177,7 @@ openerp.hr_timesheet_sheet = function(instance) { } }, is_valid_value:function(value){ + this.view.do_notify_change(); var split_value = value.split(":"); var valid_value = true; if (split_value.length > 2)