[Erp5-report] r22689 - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: SkinTemplateItem/p...

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Jul 28 15:56:46 CEST 2008


Author: rafael
Date: Mon Jul 28 15:56:45 2008
New Revision: 22689

URL: http://svn.erp5.org?rev=22689&view=rev
Log:
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.

Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getRelatedObjectParameter.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getRelatedObjectParameter.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getRelatedObjectParameter.xml?rev=22689&r1=22688&r2=22689&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getRelatedObjectParameter.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getRelatedObjectParameter.xml Mon Jul 28 15:56:45 2008
@@ -74,7 +74,8 @@
   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
@@ -156,6 +157,12 @@
             <value> <string>Base_getRelatedObjectParameter</string> </value>
         </item>
         <item>
+            <key> <string>uid</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
             <key> <string>warnings</string> </key>
             <value>
               <tuple/>

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision?rev=22689&r1=22688&r2=22689&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision Mon Jul 28 15:56:45 2008
@@ -1,1 +1,1 @@
-919
+921




More information about the Erp5-report mailing list