Do not pass more than IN_MAX as grouping filter of Move.compute_quantities_query
The list of ids is with an SQL IN
clause so we must limit the size:
Lot.get_quantity
ShipmentInternal.generate_internal_shipment
Inventory.complete_lines
Sale.check_stock_quantity