Commit d554babc authored by Crisitian Davico's avatar Crisitian Davico
Browse files

Update hr_payslip.py

parent c66a9f03
......@@ -236,15 +236,12 @@ class Payslips(BrowsableObject):
self.env.cr.execute(query, query_arguments)
try:
total = self.env.cr.dictfetchall()[0] or 0
total = self.env.cr.dictfetchall()[0]
return total['maximum']
except (IndexError, TypeError):
total = 0
return total
print(total['maximum'])
return total['maximum']
class HRPayslipWorkeddays(models.Model):
......
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