Commit aa2d0896 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_cloud: Resource for Computer is always computer

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