mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
Fix hr_payroll_gamification Resolve datetime error on payslip.
This commit is contained in:
@@ -19,7 +19,7 @@ class Payslip(models.Model):
|
||||
amount += bu.badge_id.payroll_amount
|
||||
for bu in contract.employee_id.badge_ids.filtered(lambda bu: (
|
||||
bu.badge_id.payroll_type == 'period'
|
||||
and date_from <= str(bu.create_date) <= date_to
|
||||
and date_from <= bu.create_date.date() <= date_to
|
||||
)):
|
||||
amount += bu.badge_id.payroll_amount
|
||||
return amount
|
||||
|
||||
Reference in New Issue
Block a user