Commit 192aa7a1 authored by Romain Courteaud's avatar Romain Courteaud

This script is also called on Hosting Subscription...

parent 34f77dd9
...@@ -53,6 +53,8 @@ ...@@ -53,6 +53,8 @@
<value> <string>"""Dirty script to return Software Instance state"""\n <value> <string>"""Dirty script to return Software Instance state"""\n
if context.getPortalType() == "Sale Order Line":\n if context.getPortalType() == "Sale Order Line":\n
return "Under Approval"\n return "Under Approval"\n
elif context.getPortalType() == "Hosting Subscription":\n
return context.getSlapStateTitle()\n
else:\n else:\n
state = context.getSlapState()\n state = context.getSlapState()\n
has_partition = context.getAggregate(portal_type="Computer Partition")\n has_partition = context.getAggregate(portal_type="Computer Partition")\n
......
765 766
\ No newline at end of file \ No newline at end of file
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