From 86f26b0d4143f122e7886ad31d963798a224a99c Mon Sep 17 00:00:00 2001 From: Ricardoalso Date: Wed, 9 Aug 2023 09:58:12 +0200 Subject: [PATCH] [15.0][FIX] pos_analytic_by_config: update signature of _get_sale_vals --- pos_analytic_by_config/models/pos_session.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pos_analytic_by_config/models/pos_session.py b/pos_analytic_by_config/models/pos_session.py index bf6b728db4..97a03de7cf 100644 --- a/pos_analytic_by_config/models/pos_session.py +++ b/pos_analytic_by_config/models/pos_session.py @@ -25,7 +25,7 @@ def _credit_amounts( partial_move_line_vals, amount, amount_converted, force_company_currency ) - def _get_sale_vals(self, key, amount, amount_converted): + def _get_sale_vals(self, key, amount, amount_converted, tax_amount): """The method that allowed to add the analytic account to the sales items has been dropped in v13, so we have to add it in the moment the sales items values are prepared. @@ -35,5 +35,5 @@ def _get_sale_vals(self, key, amount, amount_converted): return super( PosSession, self.with_context(account_analytic_id=account_analytic_id.id), - )._get_sale_vals(key, amount, amount_converted) - return super()._get_sale_vals(key, amount, amount_converted) + )._get_sale_vals(key, amount, amount_converted, tax_amount) + return super()._get_sale_vals(key, amount, amount_converted, tax_amount)