Reject O2M validate promise when record validation fails after screen display
Closes #14775 (grafted from 6978c46c77b9133381e18de964ae3886fc87f1e4) --HG-- branch : 8.0
This commit is contained in:
@@ -3959,9 +3959,8 @@ function eval_pyson(value){
|
||||
if (record) {
|
||||
var fields = this.screen.current_view.get_fields();
|
||||
if (!record.validate(fields)) {
|
||||
this.screen.display(true);
|
||||
prm.reject();
|
||||
return;
|
||||
this.screen.display(true).always(() => prm.reject());
|
||||
return prm;
|
||||
}
|
||||
if (this.screen.pre_validate) {
|
||||
return record.pre_validate().then(
|
||||
|
||||
Reference in New Issue
Block a user