Code review comment for lp:~openerp-dev/openobject-client/6.1-opw-575749-rgo

Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

just modified the patch a bit before final merge

=== modified file 'bin/widget/view/calendar_gtk/parser.py'
--- bin/widget/view/calendar_gtk/parser.py 2011-10-31 09:12:35 +0000
+++ bin/widget/view/calendar_gtk/parser.py 2012-07-20 06:25:32 +0000
@@ -440,13 +440,14 @@

             if isinstance(s, (tuple, list)): s = s[-1]

- caption = ustr(s)
-
+ if not (isinstance(s,bool) or self.fields[f]['type'] == 'boolean'):
+ caption = ustr(s)
+
             for f in self.axis[1:]:
                 s = event[f]
                 if isinstance(s, (tuple, list)): s = s[-1]
-
- description += [ustr(s)]
+ if not (isinstance(s, bool) or self.fields[f]['type'] == 'boolean'):
+ description += [ustr(s)]

         starts = event.get(self.date_start)
         ends = event.get(self.date_delay) or 1.0

« Back to merge proposal