Commit 59baae20 authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_project: avoid can't access error when get contents

if such error occurs, this listfield show "You selected an item that was not in list" error message when save
parent f49e9f2f
Pipeline #9865 failed with stage
in 0 seconds
......@@ -10,9 +10,9 @@
<key> <string>delegated_list</string> </key>
<value>
<list>
<string>title</string>
<string>description</string>
<string>items</string>
<string>title</string>
</list>
</value>
</item>
......@@ -121,16 +121,13 @@
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python:[(\'\', \'\')] + (here.getDestinationSection() and [(x.Title(), x.getRelativeUrl()) for x in here.getDestinationSectionValue().objectValues(portal_type = here.getPortalPaymentNodeTypeList())] or [])</string> </value>
<value> <string>python:[(\'\', \'\')] + (here.getDestinationSection() and [(x.Title(), x.getRelativeUrl()) for x in here.getDestinationSectionValue().objectValues(portal_type = here.getPortalPaymentNodeTypeList(), checked_permission=\'View\')] or [])</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -10,9 +10,9 @@
<key> <string>delegated_list</string> </key>
<value>
<list>
<string>title</string>
<string>description</string>
<string>items</string>
<string>title</string>
</list>
</value>
</item>
......@@ -121,16 +121,13 @@
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python:[(\'\', \'\')] + (here.getSourceSection() and [(x.Title(), x.getRelativeUrl()) for x in here.getSourceSectionValue().objectValues(portal_type = here.getPortalPaymentNodeTypeList())] or [])</string> </value>
<value> <string>python:[(\'\', \'\')] + (here.getSourceSection() and [(x.Title(), x.getRelativeUrl()) for x in here.getSourceSectionValue().objectValues(portal_type = here.getPortalPaymentNodeTypeList(),checked_permission=\'View\')] 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