[FIX]account_invoice:add measing feature reorder lines
[FIX] stock: code optimization to restric checking product's availability in all the locations,
if there are thousands of locations to be checked then should only check goods in the location where this product is ever come or went
[FIX] account: allow ordering of lines on all invoices (opw#590277)
[IMP] stock: improve performances of _product_reserve by reducing the number of locations that are checked (opw#590466)