IDEMPIERE-5179 : Search fields : use reference table to determine which image to show (#1157)

This commit is contained in:
Nicolas Micoud 2022-02-12 07:26:39 +01:00 committed by GitHub
parent 08ce41253b
commit c525d47759
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -192,7 +192,11 @@ public class WSearchEditor extends WEditor implements ContextMenuListener, Value
{
columnName = this.getColumnName();
if (columnName.equals("C_BPartner_ID"))
if (Util.isEmpty(m_tableName))
setTableAndKeyColumn();
if (m_tableName.equals("C_BPartner"))
{
popupMenu = new WEditorPopupMenu(true, true, isShowPreference(), true, true, false, lookup);
if (ThemeManager.isUseFontIconForImage())
@ -200,7 +204,7 @@ public class WSearchEditor extends WEditor implements ContextMenuListener, Value
else
imageUrl = ThemeManager.getThemeResource("images/BPartner16.png");
}
else if (columnName.equals("M_Product_ID"))
else if (m_tableName.equals("M_Product"))
{
popupMenu = new WEditorPopupMenu(true, true, isShowPreference(), false, false, false, lookup);
if (ThemeManager.isUseFontIconForImage())