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
This commit is contained in:
Cédric Krier
2019-12-05 21:49:24 +01:00
parent b89cfb3b8b
commit 2a2ddc636e
+1 -1
View File
@@ -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(