Skip to content

Commit

Permalink
[15.0][FIX] pos_analytic_by_config: update signature of _get_sale_vals
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardoalso committed Aug 9, 2023
1 parent ed8eb37 commit 86f26b0
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)

Check warning on line 39 in pos_analytic_by_config/models/pos_session.py

View check run for this annotation

Codecov / codecov/patch

pos_analytic_by_config/models/pos_session.py#L39

Added line #L39 was not covered by tests

0 comments on commit 86f26b0

Please sign in to comment.