Commit a42e9af7 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_cloud: Project's Reference is set via Project_init already

   Drop code that is never called anyway.
parent f16b042f
......@@ -7,11 +7,7 @@ if project.getValidationState() != "draft":
return
if project.getReference() in [None, ""]:
reference = "PROJ-%s" % portal.portal_ids.generateNewId(
id_group='slap_project_reference',
id_generator='uid', default=1)
project.setReference(reference)
raise ValueError("Reference is missing on the Project")
# Get the user id of the context owner.
local_role_list = project.get_local_roles()
......
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