IDEMPIERE-979:WSearchEditor used in forms don't have popup menu

This commit is contained in:
hieplq 2015-08-01 23:57:02 +08:00
parent 59ec9aa29a
commit 5ca38210e7
2 changed files with 3 additions and 2 deletions

View File

@ -203,6 +203,7 @@ public class WAllocation extends Allocation
row.appendCellChild(bpartnerLabel.rightAlign());
bpartnerSearch.getComponent().setHflex("true");
row.appendCellChild(bpartnerSearch.getComponent(),2);
bpartnerSearch.showMenu();
Hbox box = new Hbox();
box.appendChild(dateLabel.rightAlign());
box.appendChild(dateField.getComponent());

View File

@ -112,7 +112,7 @@ public abstract class WEditor implements EventListener<Event>, PropertyChangeLis
this.component.getParent().appendChild(popupMenu);
// when field have label, add action zoom when click to label, and show menu when right click to label
if (!gridField.isFieldOnly())
if (!readOnly)
{
if (popupMenu.isZoomEnabled() && this instanceof IZoomableEditor)
{