Jignesh Rathod(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-1039899-jir into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #1039899 in OpenERP Addons: "event: click on registration button of event 
form view gets error"
  https://bugs.launchpad.net/openobject-addons/+bug/1039899

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1039899-jir/+merge/120714

Hello , 

It's fixes problem of Iteration is not allowed on
browse_record in event.event object name_get method.

Thanks!
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1039899-jir/+merge/120714
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-1039899-jir.
=== modified file 'event/event.py'
--- event/event.py	2012-08-10 14:43:39 +0000
+++ event/event.py	2012-08-22 07:19:28 +0000
@@ -52,10 +52,13 @@
     _inherit = ['ir.needaction_mixin','mail.thread']
 
     def name_get(self, cr, uid, ids, context=None):
+        event_obj = self.browse(cr, uid, ids, context=context)
         if not ids:
               return []
+        if not isinstance(event_obj,list):
+            event_obj = [event_obj]
         res = []
-        for record in self.browse(cr, uid, ids, context=context):
+        for record in event_obj:
             date = record.date_begin.split(" ")[0]
             date_end = record.date_end.split(" ")[0]
             if date != date_end:

_______________________________________________
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