Commit 50168976 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_accounting: Skip Validation if instance is owned by a super user

This cause a lot of headeache during the tests.
parent 227c8d52
......@@ -5,7 +5,11 @@ if REQUEST is not None:
portal = context.getPortalObject()
software_instance = context
hosting_subscription = software_instance.getSpecialiseValue()
if hosting_subscription is None:
return
person = hosting_subscription.getDestinationSectionValue(portal_type='Person')
if person is None:
return
payment_portal_type = "Payment Transaction"
contract_portal_type = "Cloud Contract"
......
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