Commit 55afac7d authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_erp5: Set source administration on the Computer Network

parent daf30b1f
computer_network = state_object["object"]
portal = context.getPortalObject()
person = portal.portal_membership.getAuthenticatedMember().getUserValue()
if person is not None and computer_network.getValidationState() == "draft":
computer_network.edit(
source_administration=person.getRelativeUrl()
)
if computer_network.getValidationState() == "draft":
computer_network.validate()
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