Vauxoo / addons-vauxoo

All our modules related to developments that solves generic issues on Odoo, or that solve internal problems on Odoo Core, if something is here, maybe it is solving an issue in your company, try it and report what you see.
http://www.vauxoo.com
193 stars 288 forks source link

[FIX] product_cost_usd: order in recompute purchase price I#26616 #1675

Closed xmglord closed 3 months ago

xmglord commented 3 months ago

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.

xmglord commented 3 months ago

@JulioSerna please review.

cc: @desdelinux