odoo/odoo#64029
Created by fw-bot
Merged
at 35afcebe0c2d926db607604ce319527d49877554
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/template: Install databases to use to test upgrade in master and ensure that upgrades works with current master.
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- label
- odoo-dev:saas-14.1-13.0-landed-cost-performance-ryv-8WBy-fw
- head
- 76c5e6cb3a1c88ee446ba71dd033f9beeef25252
- merged
- 4 years ago by Infra, Nicolas Martinelli (nim)
odoo/odoo | |
---|---|
13.0 | #63742 |
14.0 | #64011 |
saas-14.1 | #64029 |
15.0 | |
16.0 | |
17.0 | |
saas-17.4 | |
18.0 | |
saas-18.1 | |
saas-18.2 | |
saas-18.3 | |
master | #64032 |
[FW][FIX] stock_landed_cost: efficient validate landed cost
Update the standard_price outside the loop to avoid recompute
quantity_svl
at each iteration. quantity_svl
is not modify in the
process and the standard_price
is not read in process.
NewPrice = OldPrice + (cost_to_add_x1) / quantity_svl + (cost_to_add_x2) / quantity_svl
Becomes
NewPrice = OldPrice + (cost_to_add_x1 + cost_to_add_x2) / quantity_svl
which is equals.
Description of the issue/feature this PR addresses:
Current behavior before PR:
Desired behavior after PR is merged:
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr