Update One2Many validate to use promise based API of pre_validate
Closes #12039
This commit is contained in:
@@ -3668,13 +3668,8 @@ function eval_pyson(value){
|
||||
return;
|
||||
}
|
||||
if (this.screen.pre_validate) {
|
||||
return record.pre_validate().then(function(validate) {
|
||||
if (!validate) {
|
||||
prm.reject();
|
||||
return;
|
||||
}
|
||||
prm.resolve();
|
||||
});
|
||||
return record.pre_validate().then(
|
||||
prm.resolve, prm.reject);
|
||||
}
|
||||
prm.resolve();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user