add module for payslip showing up as to pay when 'done'

This commit is contained in:
Marc Durepos 2023-12-22 09:53:47 -05:00
parent 6ff1bf5706
commit 817cb83d94
3 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,31 @@
#
# Bemade Inc.
#
# Copyright (C) 2023-June Bemade Inc. (<https://www.bemade.org>).
# 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,
}

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="hr_payroll.hr_payslip_action_view_to_pay" model="ir.actions.act_window">
<field name="domain">[('state', 'in', ['draft', 'verify', 'done'])]</field>
</record>
</odoo>