Commit d2600881 authored by Roque's avatar Roque

erp5_wendelin_data_lake_ingestion: fix script to get logged in user

parent 54faa13d
portal = context.getPortalObject() portal = context.getPortalObject()
return portal.Base_getUserCaption() user_reference = portal.Base_getUserCaption()
person = portal.portal_catalog.getResultValue(
portal_type = 'Person',
reference = user_reference)
if person:
return '%s %s' % (person.getFirstName(), person.getLastName())
else:
return user_reference
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment