From f3e59acda7231564a8d11fc07830f7521cc99282 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 29 Apr 2017 18:43:22 +0200 Subject: [PATCH] Use hex property of UUID instead of undocumented get_hex method get_hex method does not exist in Python3 --- payment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/payment.py b/payment.py index e377a692eb..eb1ed0ccea 100644 --- a/payment.py +++ b/payment.py @@ -172,7 +172,7 @@ class Payment: @ModelView.button_action('account_payment_stripe.wizard_checkout') def stripe_checkout(cls, payments): for payment in payments: - payment.stripe_checkout_id = uuid.uuid4().get_hex() + payment.stripe_checkout_id = uuid.uuid4().hex cls.save(payments) @classmethod @@ -320,7 +320,7 @@ class Customer(ModelSQL, ModelView): @ModelView.button_action('account_payment_stripe.wizard_checkout') def stripe_checkout(cls, customers): for customer in customers: - customer.stripe_checkout_id = uuid.uuid4().get_hex() + customer.stripe_checkout_id = uuid.uuid4().hex cls.save(customers) @classmethod