Skip to content

Commit

Permalink
Merge PR #582 into 15.0
Browse files Browse the repository at this point in the history
Signed-off-by dreispt
  • Loading branch information
OCA-git-bot committed Nov 20, 2023
2 parents 4e0507c + 86f26b0 commit 9fa546b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pos_analytic_by_config/models/pos_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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)

0 comments on commit 9fa546b

Please sign in to comment.