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>
5 lines
145 B
Python
5 lines
145 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from . import test_so_expense_purchase_price
|