fix root not in context
move stocks and transactions import to rake tasks
update products and stocks index view
improve stock process sql