diff options
| author | Ivan Yelizariev <iel@odoo.com> | 2021-03-25 14:48:13 +0000 |
|---|---|---|
| committer | Laurent Smet <las@odoo.com> | 2021-04-02 14:56:31 +0000 |
| commit | 776522fe205e7e2c421894c613a9fd37ab774313 (patch) | |
| tree | 94a37e861f6fd59d921447504f7391247b3a5a11 /addons/fetchmail/data | |
| parent | cd9c071c9357cef14635ef094a9f14fc5431956c (diff) | |
[FIX] account: prevent excess calls of _get_lines_onchange_currency
That method iterates over move lines:
https://github.com/odoo/odoo/blob/7623a0c771495cd41bf40af37c0d2b6e4beb7cdc/addons/stock_account/models/account_move.py#L16-L18
So, we have O(n^2) complexity at least. It leads to timeout error on invoices
with few hundres products. After this commit it takes 70 seconds to confirm an
invoice with 450 lines:
23527 11.038 56.530
(Number of queries / Query time, sec / Remaining time, sec)
---
https://github.com/odoo/odoo/commit/9e1aec7873a935b287b4b3c5dbc2688acee5422a
opw-2488458
closes odoo/odoo#68354
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Diffstat (limited to 'addons/fetchmail/data')
0 files changed, 0 insertions, 0 deletions
