diff --git a/account_payment_partner/models/res_partner.py b/account_payment_partner/models/res_partner.py index 7b911593a..8f8a93a5c 100644 --- a/account_payment_partner/models/res_partner.py +++ b/account_payment_partner/models/res_partner.py @@ -12,14 +12,16 @@ class ResPartner(models.Model): comodel_name="account.payment.mode", company_dependent=True, check_company=True, - domain="[('payment_type', '=', 'outbound')]", + domain="[('payment_type', '=', 'outbound')," + "('company_id', '=', current_company_id)]", help="Select the default payment mode for this supplier.", ) customer_payment_mode_id = fields.Many2one( comodel_name="account.payment.mode", company_dependent=True, check_company=True, - domain="[('payment_type', '=', 'inbound')]", + domain="[('payment_type', '=', 'inbound')," + "('company_id', '=', current_company_id)]", help="Select the default payment mode for this customer.", )