From 79ff48614c4393e1e84f8baff2c432d2e5e07271 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 23 Nov 2020 15:26:00 +0100 Subject: [PATCH] payments: get user using appropriate storage method (#48760) --- auquotidien/modules/payments.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/auquotidien/modules/payments.py b/auquotidien/modules/payments.py index 941f2d2..3026ef0 100644 --- a/auquotidien/modules/payments.py +++ b/auquotidien/modules/payments.py @@ -33,7 +33,6 @@ from wcs.qommon.misc import simplify from wcs.formdef import FormDef from wcs.formdata import Evolution from wcs.workflows import WorkflowStatusItem, register_item_class, template_on_formdata -from wcs.users import User def is_payment_supported(): if not eopayment: @@ -85,7 +84,7 @@ class Invoice(StorableObject): def get_user(self): if self.user_id: - return User.get(self.user_id, ignore_errors=True) + return get_publisher().user_class.get(self.user_id, ignore_errors=True) return None @property