Commit 0f695f23 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_cloud: Ignore Subscription Requests when Clone

parent 7fad8cee
...@@ -4,7 +4,8 @@ We want to reset reference, which is the user login in ERP5Security. ...@@ -4,7 +4,8 @@ We want to reset reference, which is the user login in ERP5Security.
One exception is when a person object is installed from business template. One exception is when a person object is installed from business template.
""" """
# Slave Instance don't have user id to be set. # Slave Instance don't have user id to be set.
if context.getPortalType() in ["Slave Instance", "Trial Request", "Trial Condition"]: if context.getPortalType() in ["Slave Instance", "Trial Request", "Trial Condition",
"Subscription Condition"]:
return return
context.setUserId(None) context.setUserId(None)
......
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