diff options
| author | Guewen Baconnier <guewen.baconnier@camptocamp.com> | 2014-09-16 15:21:07 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@openerp.com> | 2014-09-24 16:41:29 +0200 |
| commit | b5c8ced8ecd7cf6a270565ee70d88ff6f53dcd54 (patch) | |
| tree | a0d1c656283c78b444c6b0d534cfa6766c59f989 /addons/analytic_user_function/analytic_user_function_view.xml | |
| parent | 126ba0a9a8a1aaaf959a1c2c0f235640e766a9de (diff) | |
[IMP] stock: Optimize stock_move.setlast_tracking()
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
Diffstat (limited to 'addons/analytic_user_function/analytic_user_function_view.xml')
0 files changed, 0 insertions, 0 deletions
