payments: get user using appropriate storage method (#48760)
This commit is contained in:
parent
534d8a489a
commit
79ff48614c
|
@ -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
|
||||
|
|
Reference in New Issue