mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
Adding all from 11.0 https://github.com/hibou-io/odoo-hr-payroll
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:
2
hr_payslip_line_date/__init__.py
Executable file
2
hr_payslip_line_date/__init__.py
Executable file
@@ -0,0 +1,2 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
from . import payslip
|
||||||
24
hr_payslip_line_date/__manifest__.py
Executable file
24
hr_payslip_line_date/__manifest__.py
Executable 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
|
||||||
|
}
|
||||||
7
hr_payslip_line_date/payslip.py
Executable file
7
hr_payslip_line_date/payslip.py
Executable 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)
|
||||||
18
hr_payslip_line_date/payslip_view.xml
Executable file
18
hr_payslip_line_date/payslip_view.xml
Executable 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>
|
||||||
Reference in New Issue
Block a user