Commit Graph
4 Commits
Author SHA1 Message Date
Victor Feyens b00e91285f [MOV] sale_*: correct file names
Part-of: odoo/odoo#110833
2023-02-03 05:09:05 +01:00
Victor Feyens f938f00877 [IMP] sale,*: tooling for conversion of amounts to the SO currency
Harmonize currency conversion of unit prices:
* Make sure no rounding is applied during the conversion
(it'll be managed by the price_unit decimal precision
and the currency rounding will only be applied by the
monetary fields later in the computations).
* consistent parameters for the conversion (date,
company, currency).
* code simplification
* consistent behavior when the SO has no currency specified
...

Part-of: odoo/odoo#110833
2023-02-03 05:09:05 +01:00
niyasraphy e5c792510a [FIX] sale_expense_margin: remove duplicated if condition
closes odoo/odoo#106748

X-original-commit: 63c85bf237eaa2262fa9abf7e63595b8465d5586
Signed-off-by: Kevin Baptiste <kba@odoo.com>
2022-11-29 09:32:45 +01:00
sofiagvaladze aa8bfeca0c [IMP] sale_expense_margin: set purchase_price on sale.order.line for expense
Purpose: When re-invoicing the expense on the SO, the cost (purchase_price)
is not correctly set. For expenses with zero product it is set to zero,
and for the expenses with price on it, it is set to unit_price of the product.
As a result, the margin is calculated incorrectly on SO.

It should be set to the untaxed_amount of the expense in case of zero
product, or untaxed_amount of the product in case of a product with
price defined on it.

task - 2867723

closes odoo/odoo#96981

Signed-off-by: Kevin Baptiste <kba@odoo.com>
2022-08-10 16:08:06 +02:00