Skip to content

Commit

Permalink
[FIX] Payslip item name in user interface language.
Browse files Browse the repository at this point in the history
  • Loading branch information
kasado authored and norlinhenrik committed May 28, 2024
1 parent 83e7501 commit 2dbfc8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions payroll/models/hr_salary_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ def _compute_rule(self, localdict):
:rtype: {"name": string, "quantity": float, "rate": float, "amount": float}
"""
self.ensure_one()
method = f"_compute_rule_{self.amount_select}"
return api.call_kw(self, method, [self.ids, localdict], {})
method = "_compute_rule_{}".format(self.amount_select)
return api.call_kw(self, method, [self.ids, localdict], {"context": self.env.context})

def _compute_rule_fix(self, localdict):
try:
Expand Down

0 comments on commit 2dbfc8f

Please sign in to comment.