hr_payroll_holidays
hr_payroll_input_name_report
hr_payroll_input_report
hr_payroll_payment
hr_payroll_timesheet
hr_payslip_line_date
l10n_us_fl_hr_payroll
l10n_us_hr_payroll
l10n_us_mo_hr_payroll
l10n_us_oh_hr_payroll
l10n_us_va_hr_payroll
This commit is contained in:
Jared Kipe
2018-04-30 08:15:31 -07:00
parent dc247789e4
commit 516202ffc5
4 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
# -*- coding: utf-8 -*-
from . import payslip

View File

@@ -0,0 +1,24 @@
# -*- encoding: utf-8 -*-
{
'name': 'Date on Payslip Lines',
'author': 'Hibou Corp. <hello@hibou.io>',
'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
}

View File

@@ -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)

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="payslip_line_filter_date" model="ir.ui.view">
<field name="name">hr.payslip.line.select</field>
<field name="model">hr.payslip.line</field>
<field name="priority">20</field>
<field name="inherit_id" ref="hr_payroll.view_hr_payslip_line_filter"/>
<field name="arch" type="xml">
<data>
<xpath expr="//group" position="inside">
<filter string="Account Date" name="date" context="{'group_by':'date'}"/>
</xpath>
</data>
</field>
</record>
</data>
</odoo>