Commit 9553d9f5 authored by Romain Courteaud's avatar Romain Courteaud

slapos_subscription_request:

* constraint: no Organisation as source_section
* constraint: fixup empty price check
* constraint: destination_section is not required

for accounting less subscription
parent d9b230ea
......@@ -46,7 +46,7 @@
</item>
<item>
<key> <string>min_arity</string> </key>
<value> <int>1</int> </value>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
......
......@@ -24,7 +24,7 @@
</item>
<item>
<key> <string>expression</string> </key>
<value> <string>python: not ((not context.getPrice()) and (context.getSourceSection(\'\') != context.getDestinationSection(\'\')))</string> </value>
<value> <string>python: context.getPrice() or (context.getDestinationSection(\'\') in (context.getSourceSection(\'\'), \'\'))</string> </value>
</item>
<item>
<key> <string>id</string> </key>
......
......@@ -28,7 +28,7 @@
</item>
<item>
<key> <string>constraint_portal_type</string> </key>
<value> <string>python: (\'Organisation\', \'Person\')</string> </value>
<value> <string>python: (\'Person\',)</string> </value>
</item>
<item>
<key> <string>description</string> </key>
......
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