From 817cb83d9465d14998f03364138f28e2acc28a92 Mon Sep 17 00:00:00 2001 From: Marc Durepos Date: Fri, 22 Dec 2023 09:53:47 -0500 Subject: [PATCH] add module for payslip showing up as to pay when 'done' --- bemade_payslip_done_as_not_paid/__init__.py | 0 .../__manifest__.py | 31 +++++++++++++++++++ .../views/hr_payslip_views.xml | 6 ++++ 3 files changed, 37 insertions(+) create mode 100644 bemade_payslip_done_as_not_paid/__init__.py create mode 100644 bemade_payslip_done_as_not_paid/__manifest__.py create mode 100644 bemade_payslip_done_as_not_paid/views/hr_payslip_views.xml diff --git a/bemade_payslip_done_as_not_paid/__init__.py b/bemade_payslip_done_as_not_paid/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/bemade_payslip_done_as_not_paid/__manifest__.py b/bemade_payslip_done_as_not_paid/__manifest__.py new file mode 100644 index 0000000..e5e382b --- /dev/null +++ b/bemade_payslip_done_as_not_paid/__manifest__.py @@ -0,0 +1,31 @@ +# +# Bemade Inc. +# +# Copyright (C) 2023-June Bemade Inc. (). +# Author: Marc Durepos (Contact : marc@bemade.org) +# +# This program is under the terms of the Odoo Proprietary License v1.0 (OPL-1) +# It is forbidden to publish, distribute, sublicense, or sell copies of the Software +# or modified copies of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. +# +{ + 'name': 'Payslip Done as To Pay', + 'version': '16.0.1.0.0', + 'summary': 'Payslips in "Done" state appear as "To Pay"', + 'category': 'Human Resources/Payroll', + 'author': 'Bemade Inc.', + 'website': 'http://www.bemade.org', + 'license': 'OPL-1', + 'depends': ['hr_payroll'], + 'data': ['views/hr_payslip_views.xml'], + 'installable': True, + 'auto_install': True, +} diff --git a/bemade_payslip_done_as_not_paid/views/hr_payslip_views.xml b/bemade_payslip_done_as_not_paid/views/hr_payslip_views.xml new file mode 100644 index 0000000..14fda51 --- /dev/null +++ b/bemade_payslip_done_as_not_paid/views/hr_payslip_views.xml @@ -0,0 +1,6 @@ + + + + [('state', 'in', ['draft', 'verify', 'done'])] + + \ No newline at end of file