IDEMPIERE-1168 Master-detail issue with context variables (problem paying multiple invoices)

This commit is contained in:
Heng Sin Low 2013-07-19 12:38:22 +08:00
parent d3cdc491f7
commit d22b9652e8
1 changed files with 7 additions and 8 deletions

View File

@ -1988,15 +1988,14 @@ public class GridField
{
if (m_gridTab == null)
return false;
// this functionality must preserve the value of the parent tab JUST when is an included tab
// not included tabs can have Processed fields and is valid to add records in details on these cases
// like the Payment Schedule tab on Invoice (Customer) window
if (!m_gridTab.isIncluded())
return false;
GridTab parentTab = m_gridTab.getParentTab();
if (parentTab == null)
while (parentTab != null)
{
if (parentTab.getField(columnName) != null)
return true;
parentTab = parentTab.getParentTab();
}
return false;
return parentTab.getField(columnName) != null;
}
/**