Commit ceb343ce authored by Rafael Monnerat's avatar Rafael Monnerat

Now is possible to define a set of listboxes that will used in dialog mode....

Now is possible to define a set of listboxes that will used in dialog mode. This allow the user chooser (if len > 1) which listbox columns/search, he prefer use to find a certain object.

The approach is diferent of relation_form and define columns but still compatible with previous implementation. If the [multi]relation fields are not updated, be previous behaviour will still working.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22689 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 268d6078
......@@ -74,7 +74,8 @@ if parameter is not None:\n
result = listbox.get_value(parameter)\n
\n
if result in [ [], (), None, \'\']:\n
\n
if parameter == \'proxy_listbox_ids\':\n
return context.REQUEST.get(\'proxy_listbox_ids\', [])\n
result = getattr(context, dialog_id, None).get_field( \'listbox\' ).get_orig_value(parameter)\n
\n
return result\n
......@@ -155,6 +156,12 @@ return result\n
<key> <string>id</string> </key>
<value> <string>Base_getRelatedObjectParameter</string> </value>
</item>
<item>
<key> <string>uid</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
......
919
\ No newline at end of file
921
\ 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