Commit d2bc4764 authored by Tristan Cavelier's avatar Tristan Cavelier

erp5_officejs_support_request_ui: fix submit SR form

Prevent failure when opening the submit support request form.
If the first project has no related sale supply, the form rendering
was failing.
parent e34ea39a
......@@ -136,7 +136,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: here.SupportRequest_getSupportTypeList(request.get("field_your_project", None))</string> </value>
<value> <string>python: here.SupportRequest_getSupportTypeList(request.get("field_your_project", None)) or [(\'\', \'\')]</string> </value>
</item>
</dictionary>
</pickle>
......
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