account_payment_liability/models/res_partner.py
2026-03-31 11:56:50 +07:00

14 lines
538 B
Python

from odoo import fields, models
class ResPartner(models.Model):
_inherit = 'res.partner'
property_account_payable_id = fields.Many2one(
'account.account',
company_dependent=True,
string="Account Payable",
domain="[('account_type', 'in', ('liability_payable', 'liability_current')), ('deprecated', '=', False)]",
help="This account will be used instead of the default one as the payable account for the current partner. Extended to allow Current Liabilities.",
required=True
)