1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/hr_payroll_account/models/account_payment.py
2024-12-10 09:04:09 +07:00

16 lines
476 B
Python

#-*- coding:utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, models
class AccountPayment(models.Model):
_inherit = "account.payment"
@api.model
def _get_valid_payment_account_types(self):
account_types = super()._get_valid_payment_account_types()
if self.env.context.get('hr_payroll_payment_register'):
account_types.append('liability_current')
return account_types