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

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