Commit a9b8ac9a authored by Odoo's avatar Odoo
Browse files

fix bad query parameters

parent 0ccd34c5
......@@ -446,7 +446,7 @@ class HRPayslip(models.Model):
JOIN hr_payslip AS payslip
ON = line.slip_id
WHERE line.employee_id = %s
AND line.code in (%s)
AND line.code in %s
AND != %s
AND payslip.state IN ('draft', 'done', 'verify')
......@@ -501,7 +501,7 @@ class HRPayslip(models.Model):
date_from, date_to = self.get_rule_dates(int(months_back), date_to)
query_arguments = self._get_query_rule_arguments(
rule_code, date_from, date_to, *args, **kwargs
tuple(rule_code), date_from, date_to, *args, **kwargs
), query_arguments)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment