Xavier ALT (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-client-web/6.0-opw-572954-xal into 
lp:openobject-client-web.

Requested reviews:
  Vaibhav (OpenERP) (vaibhav-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-572954-xal/+merge/98174

Hi,

This fix the regression introduce by r4779, many2many not using the right ids.

Regards,
Xavier
-- 
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-572954-xal/+merge/98174
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-client-web/6.0-opw-572954-xal.
=== modified file 'addons/openerp/widgets/form/_m2m.py'
--- addons/openerp/widgets/form/_m2m.py	2012-03-16 16:01:12 +0000
+++ addons/openerp/widgets/form/_m2m.py	2012-03-19 10:05:29 +0000
@@ -81,7 +81,8 @@
         self.switch_to = view_mode[-1]
         if view_type == view_mode[-1]: self.switch_to = view_mode[0]
 
-        ids = attrs.get('value') or []
+        if ids is None:
+            ids = attrs.get('value') or []
 
         id = (ids or None) and ids[0]
         

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to