# -*- coding: utf-8 -*- from odoo import models, fields class PosPaymentMethod(models.Model): _inherit = 'pos.payment.method' intercompany_clearing_account_id = fields.Many2one( 'account.account', string='Inter-Company Clearing Account', domain="[('account_type', 'in', ['asset_receivable', 'liability_payable', 'asset_current'])]", help="If specified, an automatic clearing entry will be generated when a POS session closes. " "This is used to transfer the balance from a shared parent bank account to an inter-company account." ) intercompany_clearing_journal_id = fields.Many2one( 'account.journal', string='Clearing Journal', domain="[('type', '=', 'general')]", help="Journal to use for the automated inter-company clearing entries." )