Commit 895bdd3b authored by Łukasz Nowak's avatar Łukasz Nowak

Support cancelled order lines mapping to destroyed state.

parent 68743900
master abyss abyss_dev alain-message amarisoft cache cleanup cliff-cleanup cygwin-link-local feat/cli_request_file feat/node-secrets feat/openapi feat/standalone-service feat/testcase_upgrade_test feature/cgroups feature/format-crumbled feature/manager-cpuset fix/prune_recursive_return fix/slapos-ansible fix_format_ipv4_tap hosting_daily_invoice lxc master-dev message-box nicolas-improve-attention-point old.beginning old.scan-filesystem-renaming old.scan-filesystem_after-rebasing old.scan-filesystem_before-rebasing payzen-fixup proxy slapjs slapos-override-env slapproxy-connection-parameter tomo_fix_slapos_configurator urlJS 1.6.18 1.6.17 1.6.16 1.6.15 1.6.14 1.6.13 1.6.12 1.6.11 1.6.10 1.6.9 1.6.8 1.6.7 1.6.6 1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.12 1.5.11 1.5.10 1.5.9 1.5.8 1.5.7 1.5.6 1.5.5 1.5.4 1.5.3 1.5.2 1.5.1 1.5.0 1.4.28 1.4.27 1.4.26 1.4.25 1.4.24 1.4.23 1.4.22 1.4.21 1.4.20 1.4.19 1.4.17 1.4.16 1.4.15 1.4.14 1.4.12 1.4.11 1.4.10 1.4.9 1.4.8 1.4.7 1.4.6 1.4.5 1.4.4 1.4.3 1.4.2 1.4.1 1.4.0 1.3.18 1.3.17 1.3.16 1.3.15 1.3.14 1.3.13 1.3.12 1.3.11 1.3.10 1.3.9 1.3.8 1.3.7 1.3.6.3 1.3.6.2 1.3.6.1 1.3.6 1.3.5 1.3.4 1.3.3 1.3.2 1.3.1 1.3.0 1.2.4.1 1.2.4 1.2.3.1 1.2.3 1.2.2 1.2.1 1.2.0 1.1.3 1.1.2 1.1.1 1.1.0 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0 1.0.0rc6 1.0.0rc5 1.0.0rc4 1.0.0rc3 1.0.0-rc1 0.35.1 0.34 0.33.1 0.33 0.32.3 0.32.2 0.32 0.31.2 0.31.1 0.31 0.30 0.29 0.28.9 0.28.8 0.28.7 0.28.6 0.28.5 0.28.4 0.28.3 0.28.2 0.28.1 0.28 0.27 0.26.2 0.26.1 0.26 0.25 0.24 master-20180917 jquerymobile.noanimation
No related merge requests found
...@@ -50,7 +50,9 @@ ...@@ -50,7 +50,9 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>"""Dirty script to return Software Instance state"""\n <value> <string encoding="cdata"><![CDATA[
"""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
\n \n
...@@ -58,6 +60,13 @@ sale_packing_list_line = context.SoftwareInstance_getInstancePackingListLine()\n ...@@ -58,6 +60,13 @@ sale_packing_list_line = context.SoftwareInstance_getInstancePackingListLine()\n
if sale_packing_list_line is None:\n if sale_packing_list_line is None:\n
sale_packing_list_line = context.SoftwareInstance_getInstancePackingListLine(portal_type="Sale Order Line")\n sale_packing_list_line = context.SoftwareInstance_getInstancePackingListLine(portal_type="Sale Order Line")\n
if sale_packing_list_line is None:\n if sale_packing_list_line is None:\n
if context.getPortalObject().portal_catalog.countResults(\n
portal_type=\'Sale Order Line\',\n
simulation_state=\'cancelled\',\n
default_aggregate_uid=context.getUid(),\n
default_resource_uid=context.restrictedTraverse(context.getPortalObject().portal_preferences.getPreferredInstanceSetupResource()).getUid()\n
)[0][0] > 0:\n
return \'Destroyed\'\n
# Let\'s hope the sale order is not indexed yet\n # Let\'s hope the sale order is not indexed yet\n
return \'Looking for a free partition\'\n return \'Looking for a free partition\'\n
\n \n
...@@ -90,7 +99,9 @@ elif service_url == portal_preferences.getPreferredInstanceHostingResource():\n ...@@ -90,7 +99,9 @@ elif service_url == portal_preferences.getPreferredInstanceHostingResource():\n
return \'Stopped\'\n return \'Stopped\'\n
\n \n
return \'Unable to calculate the status...\'\n return \'Unable to calculate the status...\'\n
</string> </value>
]]></string> </value>
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
......
668 669
\ 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