From deb0eb5d789220873bdcfd79ff80613a058447dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 22 Aug 2024 18:41:31 +0200 Subject: [PATCH] Search on customer id when searching by record name of Stripe customer --- modules/account_payment_stripe/payment.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/account_payment_stripe/payment.py b/modules/account_payment_stripe/payment.py index 06855d4dc9..daf1de77c8 100644 --- a/modules/account_payment_stripe/payment.py +++ b/modules/account_payment_stripe/payment.py @@ -1396,6 +1396,7 @@ class Customer(CheckoutMixin, DeactivableMixin, ModelSQL, ModelView): "Stripe Customer" __name__ = 'account.payment.stripe.customer' _history = True + _rec_name = 'stripe_customer_id' party = fields.Many2One('party.party', "Party", required=True, states={ 'readonly': Eval('stripe_customer_id') | Eval('stripe_token'),