IDEMPIERE-719 Tree node labels are not updated when related record changes.

IDEMPIERE-682 Tree in the window sales region doesnt refresh when you change a register.
This commit is contained in:
Heng Sin Low 2013-03-20 18:18:49 +08:00
parent 1daa06b269
commit ee485727f7
1 changed files with 18 additions and 0 deletions

View File

@ -1260,6 +1260,24 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer
if (ti.getPage() == null) {
Events.echoEvent(ON_DEFER_SET_SELECTED_NODE, this, null);
}
boolean changed = false;
String name = (String) gridTab.getValue("Name");
if (name != null && !name.equals(data.getName())) {
data.setName(name);
changed = true;
}
Boolean summary = (Boolean) gridTab.getValue("IsSummary");
if (summary != null && !summary.booleanValue() == data.isSummary()) {
data.setSummary(summary);
changed = true;
}
if (changed) {
treeNode.setData(data);
}
return;
}
}