forked from Mapan/odoo17e
16 lines
476 B
Python
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
|