diff options
| author | Victor Feyens <vfe@odoo.com> | 2020-06-02 10:29:11 +0000 |
|---|---|---|
| committer | Victor Feyens <vfe@odoo.com> | 2020-06-03 10:36:18 +0000 |
| commit | 8a48aee8eb6ac6539dad8e6191273726cd179016 (patch) | |
| tree | 336c96f6d30d59b232aefe13fb31f616a8b3d574 /addons/web/static/src/xml/debug.xml | |
| parent | 72087777acf570b4ab8c7593c295d8f7f0a8832c (diff) | |
[FIX] sale_margin: purchase_price performance.
When installing sale_margin, the computed fields will be computed on existing
sale.order and sale.order.line in database. On huge databases, the computation
may take a lot of time, depending on the configuration (multi-company, multi-currency, ...)
The current commit improves the computation of the purchase_price
(recently changed to a computed field), by avoiding unnecessary currency
conversions when possible (one less query to get the conversion rates).
In a multi-currency database where the products have no cost defined
(standard_price field), the sale_margin installation takes up to 50% less time.
closes odoo/odoo#52338
X-original-commit: 3c9841d1aa4fc5b10012c8239a31d6e7f8676fc0
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
Diffstat (limited to 'addons/web/static/src/xml/debug.xml')
0 files changed, 0 insertions, 0 deletions
