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 )