Commit 840c3c39 authored by Romain Courteaud's avatar Romain Courteaud

Workaround to display image on the website.

parent b3bf85fb
...@@ -50,17 +50,7 @@ ...@@ -50,17 +50,7 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>if context.getPortalType() == \'Sale Order Line\':\n <value> <string>return context.HostingSubscription_getDefaultImageAbsoluteUrl()\n
delivery_line = context\n
else:\n
delivery = context.getCausalityValue(portal_type=["Sale Order", "Sale Packing List"])\n
delivery_line = delivery.contentValues(portal_type=["Sale Order Line", "Sale Packing List Line"])[0]\n
\n
software_release = delivery_line.getAggregateValue(portal_type=\'Software Release\')\n
if software_release is not None:\n
software_product = software_release.getAggregateValue()\n
if software_product is not None:\n
return "%s/index_html" % software_product.getDefaultImageAbsoluteUrl()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
264 265
\ 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