IDEMPIERE-3210: Refresh the header record when save from detail tab and enable/disable save button on detail tab record edit/save.

This commit is contained in:
Deepak Pansheriya 2016-10-06 18:57:51 +05:30
parent ebb6605287
commit a574294e33
2 changed files with 2 additions and 1 deletions

View File

@ -151,6 +151,7 @@ public class CompositeADTabbox extends AbstractADTabbox
showLastError();
}
tabPanel.getGridTab().dataRefreshAll(true, true);
tabPanel.getGridTab().refreshParentTabs();
}
else if (DetailPane.ON_DELETE_EVENT.equals(event.getName())) {
onDelete();

View File

@ -710,7 +710,7 @@ public class DetailPane extends Panel implements EventListener<Event>, IdSpace {
} else if (BTN_EDIT_ID.equals(btn.getId())) {
btn.setDisabled(false);
} else if (BTN_SAVE_ID.equals(btn.getId())) {
btn.setDisabled(false);
btn.setDisabled(!adtab.needSave(true, false));
}
if (windowRestrictList.contains(btn.getId())) {
btn.setVisible(false);