IDEMPIERE-6038 BP/Product Icon not used in Order Info Window (#2239)

This commit is contained in:
Carlos Ruiz 2024-02-13 07:44:39 +01:00
parent 53d8c5b460
commit c23a3d8e5e
1 changed files with 4 additions and 2 deletions

View File

@ -213,14 +213,16 @@ public class WChosenboxSearchEditor extends WEditor implements ContextMenuListen
if (lookup instanceof MLookup)
{
MLookup mlookup = (MLookup) lookup;
if ("C_BPartner_ID".equals(mlookup.getLookupInfo().KeyColumn))
if ("C_BPartner_ID".equals(mlookup.getLookupInfo().KeyColumn)
|| (mlookup.getLookupInfo().KeyColumn != null && mlookup.getLookupInfo().KeyColumn.endsWith(".C_BPartner_ID")))
{
if (ThemeManager.isUseFontIconForImage())
imageUrl = "z-icon-BPartner";
else
imageUrl = ThemeManager.getThemeResource("images/BPartner16.png");
}
else if ("M_Product_ID".equals(mlookup.getLookupInfo().KeyColumn))
else if ("M_Product_ID".equals(mlookup.getLookupInfo().KeyColumn)
|| (mlookup.getLookupInfo().KeyColumn != null && mlookup.getLookupInfo().KeyColumn.endsWith(".M_Product_ID")))
{
if (ThemeManager.isUseFontIconForImage())
imageUrl = "z-icon-Product";