ForgeFlow / stock-rma

Stock RMA
GNU Affero General Public License v3.0
38 stars 41 forks source link

[16.0][FIX] rma_purchase: write-off differences in price between rma line and vendor refund #518

Open AaronHForgeFlow opened 5 months ago

AaronHForgeFlow commented 5 months ago

Forward port of https://github.com/ForgeFlow/stock-rma/pull/403

Issues found:

In v16 Odoo change the way to generate the price difference journal items and it only does that when the cost is standard. From my point of view that is not correct and it should apply at leas to FIFO as well.

Because of the same thing, the selected account for the price difference journal items in not the price difference account in the product/product category but the property expense account of the product.

Check the module purchase_price_diff and method def _get_price_diff_account for more detail.