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..1723d1de --- /dev/null +++ b/hr_payslip_line_date/__manifest__.py @@ -0,0 +1,23 @@ +{ + 'name': 'Date on Payslip Lines', + 'author': 'Hibou Corp. ', + 'license': 'AGPL-3', + 'category': 'Human Resources', + 'depends': ['hr_payroll_account'], + 'version': '12.0.1.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..790b5447 --- /dev/null +++ b/hr_payslip_line_date/payslip_view.xml @@ -0,0 +1,35 @@ + + + + hr.payslip.line.select + hr.payslip.line + 20 + + + + + + + + + + + + + + + + + + + + + + + + + + + + +