From 2a2ddc636e5feeb5a709a4d1b8c07859ddff4f25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 5 Dec 2019 21:49:24 +0100 Subject: [PATCH] Stop processing response when record is not valid issue8571 introduced the validate attribute but the test against validate record is wrong as it stop processing when the record is actually valid. issue8886 review252731002 --- src/wizard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wizard.js b/src/wizard.js index f1c40d0ffb..e5cdab302b 100644 --- a/src/wizard.js +++ b/src/wizard.js @@ -130,7 +130,7 @@ response: function(definition) { this.__waiting_response = false; this.screen.current_view.set_value(); - if (definition.validate && this.screen.current_record.validate( + if (definition.validate && !this.screen.current_record.validate( null, null, null, true)) { this.screen.display(true); this.info_bar.message(