diff --git a/hr_payslip_line_date/__init__.py b/hr_payslip_line_date/__init__.py old mode 100755 new mode 100644 index c09f11e8..0650744f --- a/hr_payslip_line_date/__init__.py +++ b/hr_payslip_line_date/__init__.py @@ -1,2 +1 @@ -# -*- coding: utf-8 -*- -from . import payslip +from . import models diff --git a/hr_payslip_line_date/__manifest__.py b/hr_payslip_line_date/__manifest__.py index b67dfe15..9864b715 100755 --- a/hr_payslip_line_date/__manifest__.py +++ b/hr_payslip_line_date/__manifest__.py @@ -17,7 +17,8 @@ Date on Payslip Lines 'auto_install': True, 'website': 'https://hibou.io/', 'data': [ - 'payslip_view.xml', + 'views/payslip_view.xml', + 'views/payslip_menu.xml', ], 'installable': True } diff --git a/hr_payslip_line_date/models/__init__.py b/hr_payslip_line_date/models/__init__.py new file mode 100755 index 00000000..305e17f9 --- /dev/null +++ b/hr_payslip_line_date/models/__init__.py @@ -0,0 +1 @@ +from . import payslip diff --git a/hr_payslip_line_date/payslip.py b/hr_payslip_line_date/models/payslip.py similarity index 100% rename from hr_payslip_line_date/payslip.py rename to hr_payslip_line_date/models/payslip.py diff --git a/hr_payslip_line_date/views/payslip_menu.xml b/hr_payslip_line_date/views/payslip_menu.xml new file mode 100644 index 00000000..b1a3e6f7 --- /dev/null +++ b/hr_payslip_line_date/views/payslip_menu.xml @@ -0,0 +1,15 @@ + + + + + + + + + \ No newline at end of file diff --git a/hr_payslip_line_date/views/payslip_view.xml b/hr_payslip_line_date/views/payslip_view.xml new file mode 100755 index 00000000..e36b50cd --- /dev/null +++ b/hr_payslip_line_date/views/payslip_view.xml @@ -0,0 +1,64 @@ + + + + + hr.payslip.line.select + hr.payslip.line + 20 + + + + + Last Month (Date From) + + + Last Quarter (Date From) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + hr.payslip.line.tree.extend + hr.payslip.line + + + + + + + + + True + + + + + + + + + +