diff --git a/addons/sale_timesheet/models/account_invoice.py b/addons/sale_timesheet/models/account_invoice.py index a3f55c7b633..ddc3fb0a3c9 100644 --- a/addons/sale_timesheet/models/account_invoice.py +++ b/addons/sale_timesheet/models/account_invoice.py @@ -95,7 +95,7 @@ class AccountInvoice(models.Model): if index+1 != len(no_zero_timesheet_revenue): price_subtotal_inv = invoice_line.currency_id.compute(invoice_line.price_subtotal, timesheet_line.currency_id) price_subtotal_sol = timesheet_line.so_line.currency_id.compute(timesheet_line.so_line.price_subtotal, timesheet_line.currency_id) - if not float_is_zero(price_subtotal_sol, precision_rounding=timesheet_line.company_currency_id.rounding): + if not float_is_zero(price_subtotal_sol, precision_rounding=timesheet_line.currency_id.rounding): line_revenue = timesheet_line.timesheet_revenue * price_subtotal_inv / price_subtotal_sol total_revenue_per_currency[timesheet_line.currency_id.id] += line_revenue else: