IDEMPIERE-6038 BP/Product Icon not used in Order Info Window (#2239)
This commit is contained in:
parent
53d8c5b460
commit
c23a3d8e5e
|
@ -213,14 +213,16 @@ public class WChosenboxSearchEditor extends WEditor implements ContextMenuListen
|
||||||
if (lookup instanceof MLookup)
|
if (lookup instanceof MLookup)
|
||||||
{
|
{
|
||||||
MLookup mlookup = (MLookup) lookup;
|
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())
|
if (ThemeManager.isUseFontIconForImage())
|
||||||
imageUrl = "z-icon-BPartner";
|
imageUrl = "z-icon-BPartner";
|
||||||
else
|
else
|
||||||
imageUrl = ThemeManager.getThemeResource("images/BPartner16.png");
|
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())
|
if (ThemeManager.isUseFontIconForImage())
|
||||||
imageUrl = "z-icon-Product";
|
imageUrl = "z-icon-Product";
|
||||||
|
|
Loading…
Reference in New Issue