Mohammed Shekha(Open ERP) has proposed merging 
lp:~openerp-dev/openobject-client-web/6.0-opw-17755-msh into 
lp:openobject-client-web/6.0.

Requested reviews:
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-17755-msh/+merge/76976

Hello,

Fixed the issue of calendar view, there was a regression in calendar view 
because previous commit.

This problem occur due to revision no. 4684 and with the branch 
lp:~openerp-dev/openobject-client-web/6.0-bug-14811-msh

So changed the code accordingly.

Thanx.
-- 
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-17755-msh/+merge/76976
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-client-web/6.0-opw-17755-msh.
=== modified file 'addons/view_calendar/widgets/_base.py'
--- addons/view_calendar/widgets/_base.py	2011-08-19 07:10:54 +0000
+++ addons/view_calendar/widgets/_base.py	2011-09-26 12:52:47 +0000
@@ -267,11 +267,12 @@
                     clr_field[search_limit-1] = self.context.get('search_default_user_id')
 
             domain.append((self.color_field, 'in', clr_field))
-
+        
         ids = proxy.search(domain, 0, 0, order_by, ctx)
-        splitIds = [tuple(x.split('-')) for x in ids]
+        splitIds = [tuple(x.split('-')) for x in ids if isinstance(x, str)]
         splitIds.sort(key = lambda x: int(x[0]))
-        ids = ["-".join(i) for i in splitIds]
+        if splitIds:
+            ids = ["-".join(i) for i in splitIds]
         result = proxy.read(ids, self.fields.keys()+['__last_update'], ctx)
         
         ConcurrencyInfo.update(self.model, result)

_______________________________________________
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