payments: get user using appropriate storage method (#48760)

This commit is contained in:
Frédéric Péters 2020-11-23 15:26:00 +01:00
parent 534d8a489a
commit 79ff48614c
1 changed files with 1 additions and 2 deletions

View File

@ -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