MIG hr_payroll_gamification For Odoo 12.0

This commit is contained in:
Bhoomi
2019-10-15 12:21:09 -04:00
parent f293f915fd
commit 92025e1397
2 changed files with 2 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
{ {
'name': 'Payroll Gamification', 'name': 'Payroll Gamification',
'description': 'Payroll Gamification', 'description': 'Payroll Gamification',
'version': '11.0.1.0.1', 'version': '12.0.1.0.1',
'website': 'https://hibou.io/', 'website': 'https://hibou.io/',
'author': 'Hibou Corp. <hello@hibou.io>', 'author': 'Hibou Corp. <hello@hibou.io>',
'license': 'AGPL-3', 'license': 'AGPL-3',

View File

@@ -19,7 +19,7 @@ class Payslip(models.Model):
amount += bu.badge_id.payroll_amount amount += bu.badge_id.payroll_amount
for bu in contract.employee_id.badge_ids.filtered(lambda bu: ( for bu in contract.employee_id.badge_ids.filtered(lambda bu: (
bu.badge_id.payroll_type == 'period' bu.badge_id.payroll_type == 'period'
and date_from <= bu.create_date <= date_to and date_from <= str(bu.create_date) <= date_to
)): )):
amount += bu.badge_id.payroll_amount amount += bu.badge_id.payroll_amount
return amount return amount