diff options
| author | Victor Feyens <vfe@odoo.com> | 2020-10-05 10:48:25 +0000 |
|---|---|---|
| committer | Victor Feyens <vfe@odoo.com> | 2020-10-19 12:38:18 +0000 |
| commit | 447057cfbe28db760834fba2dfd2c79303825cbc (patch) | |
| tree | 3e08c0dfc54549ff6efc775903acee340aef881c /addons/web_editor/static/src | |
| parent | cc74ad0108e47654f4a795556f03841319909c67 (diff) | |
[FIX] sale_coupon: reorder costly method to avoid useless operations
When coupon is installed, all cart (SO) updates on the e-commerce go through
the _remove_invalid_lines method. It has been proved to be a performance
bottleneck on big instances with a lot of coupon programs.
To reduce the performance impact of this method, this commit reorganize it
to avoid unnecessary operations as much as possible.
X-original-commit: bb2a7e84fd6b3e37f59f76bb403756e2d1a0d5d7
Co-authored-by: Loan Sens <lse@odoo.com>
Diffstat (limited to 'addons/web_editor/static/src')
0 files changed, 0 insertions, 0 deletions
