summaryrefslogtreecommitdiff
path: root/doc/reference/javascript_reference.rst
diff options
context:
space:
mode:
authorAdrian Torres <adt@odoo.com>2019-03-12 08:30:15 +0000
committerAdrian Torres <adt@odoo.com>2019-03-12 13:15:40 +0000
commit859586b641a5ad2b534c8400b69f125215608390 (patch)
tree0d61284b6e7d3784f141abb626aaca97e5a5f15c /doc/reference/javascript_reference.rst
parent1be873d40d7aa8b1959e3c5a1ec6a6ead2323b6a (diff)
[FIX] purchase: recompute in batch after confirmation
For every line in a RFQ, we create a stock.move upon confirmation of the RFQ. This create, in turn, triggers a lot of recomputes that are not needed for the creation of the next moves and thus should only be triggered once. This commit disables the recompute during the step that creates the moves and then manually triggers the recompute **once**, after all the moves have been created. Confirmation time for a PO with 2000 lines: - Before patch: ~1h - After patch: ~9min This patch is similar to the one introduced at [1], however the previously mentioned patch uses batch create which is not available in this version, so we manually emulate batch create's behavior. [1] https://github.com/odoo/odoo/pull/31471
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions