mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
MIG hr_payroll_gamification For Odoo 12.0
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user