Search on customer id when searching by record name of Stripe customer

This commit is contained in:
Cédric Krier committed 2024-08-22 18:41:31 +02:00
1 parent c8464cd945
commit deb0eb5d78
1 file changed
+1
@@ -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'),