diff options
| author | Adrian Torres <adt@odoo.com> | 2019-03-20 08:38:07 +0000 |
|---|---|---|
| committer | Adrian Torres <adt@odoo.com> | 2019-03-20 14:34:17 +0000 |
| commit | f4b7dab00e9b35d43079eec68a12213d891bc99d (patch) | |
| tree | 3c2f049190a9c760bd2ecf5f6f731355408eb281 /addons/web_editor/static/src | |
| parent | 7dfcea0655b6d86bee3db086caab641ff3a51d94 (diff) | |
[FIX] account, sale: create invoice lines in batch
This patch changes the create of `account.invoice.line` to use
`model_create_multi`, which allows the batch creation of multiple
invoice lines while only triggering the recompute of all related fields
once.
It also changes the generation of invoices from a SO to take advantage
of the create multi of `account.invoice.line`.
For a SO of 2000 lines:
Pre-patch:
~417s to generate an Invoice
Post-patch:
~30s to generate an Invoice
closes odoo/odoo#31975
Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
Diffstat (limited to 'addons/web_editor/static/src')
0 files changed, 0 insertions, 0 deletions
