fix relation portfolio_item-stock, add script to end of file(autocomplete)