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,8 +2017,11 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
clearTitleRelatedContext(); clearTitleRelatedContext();
// The record was not changed locally
if (adTabbox.getDirtyADTabpanel() == null) {
doOnFind();
} else {
onSave(false, false, new Callback<Boolean>() { onSave(false, false, new Callback<Boolean>() {
@Override @Override
public void onCallback(Boolean result) { public void onCallback(Boolean result) {
if (result) { if (result) {
@ -2027,6 +2030,7 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
} }
}); });
} }
}
private void doOnFind() { private void doOnFind() {
// Gets Fields from AD_Field_v // Gets Fields from AD_Field_v