From b0e79d28202afb153db5d9dc176dda76e41c822a Mon Sep 17 00:00:00 2001 From: "German Loredo [Vauxoo]" Date: Mon, 8 Jul 2024 21:11:35 +0000 Subject: [PATCH] [FIX] product_cost_usd: order in recompute purchase price 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. --- product_cost_usd/__manifest__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/product_cost_usd/__manifest__.py b/product_cost_usd/__manifest__.py index fd81f73f014..197931334af 100644 --- a/product_cost_usd/__manifest__.py +++ b/product_cost_usd/__manifest__.py @@ -10,6 +10,7 @@ "license": "LGPL-3", "depends": [ "sale_margin", + "sale_stock_margin", ], "demo": [ "demo/product_pricelist_demo.xml",