IDEMPIERE-4172 onFind forces to refresh the record when another user modified it

This commit is contained in:
Diego Ruiz 2020-02-12 18:39:17 +01:00 committed by Carlos Ruiz
parent ea70caa08a
commit 3e3f8ac4e9
1 changed files with 14 additions and 10 deletions

View File

@ -2016,16 +2016,20 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
return;
clearTitleRelatedContext();
onSave(false, false, new Callback<Boolean>() {
@Override
public void onCallback(Boolean result) {
if (result) {
doOnFind();
}
}
});
// The record was not changed locally
if (adTabbox.getDirtyADTabpanel() == null) {
doOnFind();
} else {
onSave(false, false, new Callback<Boolean>() {
@Override
public void onCallback(Boolean result) {
if (result) {
doOnFind();
}
}
});
}
}
private void doOnFind() {