Commit 17234d3d authored by Santiago Apel's avatar Santiago Apel 💬
Browse files

Merge branch 'fix_rule_total_max_' into '12.0-stage'

[FIX] total_rule_max input parameter

See merge request !27
parents 2a07559b 1c799c98
......@@ -501,8 +501,9 @@ 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
rule_code, date_from, date_to, *args, **kwargs
)
self.env.cr.execute(query, query_arguments)
try:
result = self.env.cr.fetchone()[0] or 0
......
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