Validate field on simplified domain

issue3823
review4901002
This commit is contained in:
Cédric Krier
2014-04-07 18:13:15 +02:00
parent 6581c6d086
commit 2b81dc096a
+2 -2
View File
@@ -1086,7 +1086,8 @@
return true;
}
this.get_state_attrs(record).domain_readonly = false;
var domain = this.validation_domains(record);
var inversion = new Sao.common.DomainInversion();
var domain = inversion.simplify(this.validation_domains(record));
if (!softvalidation) {
result &= this.check_required(record);
}
@@ -1095,7 +1096,6 @@
} else if (Sao.common.compare(domain, [['id', '=', null]])) {
result = false;
} else {
var inversion = new Sao.common.DomainInversion();
if ((domain instanceof Array) &&
(domain.length == 1) &&
(domain[0][1] == '=')) {