Because the menus layout changed in 3.6.0 the code that adds the menu item breaks. Below is the new code we use.
var searchEntryPriv = false;
var subMenu = mainwindow.findChild(“menu.prod.items”);
//Remove Menu
var menuTrig = mainwindow.findChild(“pd.listItems”);
//get privilege
var prvqry = toolbox.executeQuery("SELECT checkPrivilege(‘ViewItemMasters’) AS priv ");
if(prvqry.first())
{
searchEntryPriv = prvqry.value(“priv”);
}
//add New Menu
var menuAction = toolbox.menuInsertAction(subMenu, menuTrig, “Advanced Search…”, searchEntryPriv);
menuAction.triggered.connect(customOpen);
//open Custom Screen
function customOpen()
{
var childwnd2 = toolbox.openWindow(“advancedItemSearch”, 0, 0, 1);
}
Make sure the “Modifications allowed” is check with the system>design>packages>advsearch
Then go system>design>scripts>
…expand advsearch
edit iniMenu and paste everything between the dotted lines.
Then close xTuple and Login again for changes to take affect. There should now be a menu item under Products > Item > Advanced Search…