diff options
| author | Toufik Ben Jaa <tbe@odoo.com> | 2020-02-24 15:40:17 +0000 |
|---|---|---|
| committer | Toufik Ben Jaa <tbe@odoo.com> | 2020-02-25 13:09:25 +0000 |
| commit | f9f5531f3fd43240b1c32ce6e350fa8fefd9dc5f (patch) | |
| tree | 8f9e6485b32a49a74f7cdbae46fb1bc0d27f55b9 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 6bb0963b6adb588925be9789e9b380eb437a13d2 (diff) | |
[FIX] sale: speed-up invoice creation
- At invoice creation, the stored fields that depends on `invoice_lines`
are computed to be stored.
This can slow down the invoice creation for a database with a lot of
records on `account_move`.
This commit speed-up the invoice creation by using SQL Joins to
speed-up the searches.
We cannot use `auto_join` on the `invoice_lines` field since it is
not supported on many2many, thus we do it in SQL.
closes odoo/odoo#46233
X-original-commit: b39e17c464775564faa7d0f10e675d47fa026234
Signed-off-by: Toufik Benjaa (tbe) <tbe@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
