Files
odoo_source/addons/account_fleet/tests
Youssef Bashandy 77ed8392ac [FIX] account_fleet : store the correct cost value in fleet service
Steps to reporduce:
	1- Install Accounting, Fleet modules
	2- Create a bill in accounting with a different currency than the company's default, and add a line with a chosen vehicle_id.
	3- Go to the chosen vehicle in Fleet module
	4- Navigate to the service created for this bill

Current behavior before PR:
If we create a bill for a vehicle using a different currency than
the company's default. The fleet service that will be created
will be having the company's currency but the value will be the amount
in the currency used in the bill

Desired behavior after PR is merged:
We now create the fleet service using the value in debit
not the unit price or the price subtotal.

opw-3734743

closes odoo/odoo#163228

X-original-commit: 0ef2abaa3e926daa71e004e0583503b7e3167a59
Related: odoo/enterprise#61408
Signed-off-by: Youssef Bashandy (yoba) <yoba@odoo.com>
2024-04-25 17:06:52 +00:00
..