b5c8ced8ec
When setlast_tracking is called on a large number of moves in a picking (e.g. when splitting moves in a picking), the time to complete grows exponentially. The reason is that it loops over all the moves of a picking, even if it keeps only the last tracking. The method now uses a search() with a limit so it doesn't need to browse all the moves. Added test to check the behaviour of setlast_tracking Fixes #2448 |
||
---|---|---|
.. | ||
opening_stock.yml | ||
setlast_tracking.yml | ||
shipment.yml | ||
stock_report.yml | ||
stock_users.yml |