Skip to content

Commit

Permalink
[FIX] product_cost_usd: order in recompute purchase price
Browse files Browse the repository at this point in the history
The `sale_stock_margin` module recomputes the purchase price in sale
order lines and calls `super()` only over the lines without a stock
move related to it. This causes this module to not recompute the lines
with stock moves related, leading to incorrect computation of the
purchase price.

This commit adds the `sale_stock_margin` module as a dependency in
order to first run this module compute.
  • Loading branch information
xmglord authored and JulioSerna committed Jul 8, 2024
1 parent d75fc95 commit b0e79d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions product_cost_usd/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"license": "LGPL-3",
"depends": [
"sale_margin",
"sale_stock_margin",
],
"demo": [
"demo/product_pricelist_demo.xml",
Expand Down

0 comments on commit b0e79d2

Please sign in to comment.