Commit aa2d0896 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_cloud: Resource for Computer is always computer

parent 0b6adc82
......@@ -3,7 +3,7 @@
"""
from DateTime import DateTime
from Products.ERP5Type.Message import translateString
from zExceptions import Unauthorized
user = context.getPortalObject().portal_membership.getAuthenticatedMember().getUserValue()
......@@ -32,10 +32,7 @@ if source is None and destination is None:
if source_section is None:
source_section = context.getSourceAdministration()
if resource_value is None:
# Default value
resource_value = context.product_module.computer
resource_value = context.product_module.computer
module = context.getDefaultModule(portal_type=portal_type)
line_portal_type = '%s Line' % portal_type
......
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