Commit a1b505b7 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_web: Failover in case cell is None and context is Software Product

parent 06cc675c
person = context.getPortalObject().ERP5Site_getAuthenticatedMemberPersonValue()
if cell is None and context.getPortalType() == "Software Product":
cell = context
if person is None or person.Person_isServiceProvider():
return "<a href=%s/SoftwareProduct_viewSoftwareReleaseOrderDialog> Order Now </a>" % cell.absolute_url()
......
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>cell</string> </value>
<value> <string>cell=None</string> </value>
</item>
<item>
<key> <string>id</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