diff --git a/hr_payslip_line_date/__init__.py b/hr_payslip_line_date/__init__.py new file mode 100755 index 00000000..c09f11e8 --- /dev/null +++ b/hr_payslip_line_date/__init__.py @@ -0,0 +1,2 @@ +# -*- coding: utf-8 -*- +from . import payslip diff --git a/hr_payslip_line_date/__manifest__.py b/hr_payslip_line_date/__manifest__.py new file mode 100755 index 00000000..a9100917 --- /dev/null +++ b/hr_payslip_line_date/__manifest__.py @@ -0,0 +1,24 @@ +# -*- encoding: utf-8 -*- +{ + 'name': 'Date on Payslip Lines', + 'author': 'Hibou Corp. ', + 'license': 'AGPL-3', + 'category': 'Human Resources', + 'depends': ['hr_payroll_account'], + 'version': '11.0.0.0.0', + 'description': """ +Date on Payslip Lines +===================== + + * Adds "Date Account" (date) field to payslip line from payslip + * Adds group by date to Payslip Line search view + * Allows filtering by "Date Account" for easy period reporting + """, + + 'auto_install': True, + 'website': 'https://hibou.io/', + 'data':[ + 'payslip_view.xml', + ], + 'installable': True +} diff --git a/hr_payslip_line_date/payslip.py b/hr_payslip_line_date/payslip.py new file mode 100755 index 00000000..7b55423e --- /dev/null +++ b/hr_payslip_line_date/payslip.py @@ -0,0 +1,7 @@ +from odoo import models, fields + + +class PayslipLine(models.Model): + _inherit = 'hr.payslip.line' + + date = fields.Date(string="Date Account", related='slip_id.date', store=True) \ No newline at end of file diff --git a/hr_payslip_line_date/payslip_view.xml b/hr_payslip_line_date/payslip_view.xml new file mode 100755 index 00000000..61f5ba18 --- /dev/null +++ b/hr_payslip_line_date/payslip_view.xml @@ -0,0 +1,18 @@ + + + + + hr.payslip.line.select + hr.payslip.line + 20 + + + + + + + + + + +