Merge lp:~openerp-commiter/openobject-client/6.0-opw-54653-nch into lp:openobject-client/6.0

Proposed by Naresh(OpenERP)
Status: Merged
Merged at revision: 1940
Proposed branch: lp:~openerp-commiter/openobject-client/6.0-opw-54653-nch
Merge into: lp:openobject-client/6.0
Diff against target: 16 lines (+4/-2)
1 file modified
bin/widget/view/calendar_gtk/parser.py (+4/-2)
To merge this branch: bzr merge lp:~openerp-commiter/openobject-client/6.0-opw-54653-nch
Reviewer Review Type Date Requested Status
Olivier Laurent (Open ERP) Pending
Review via email: mp+89633@code.launchpad.net

Description of the change

Hello,
case 54653

The treeview on the left in calendar view was displaying duplicate color for the newly added entry.
This branch fixes the issue.
for eg:
      Whenever we create any new calender leave, then newly created side pan does differ in color with the leave.
Regards,

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/widget/view/calendar_gtk/parser.py'
2--- bin/widget/view/calendar_gtk/parser.py 2011-09-30 10:53:58 +0000
3+++ bin/widget/view/calendar_gtk/parser.py 2012-01-23 07:38:24 +0000
4@@ -221,8 +221,10 @@
5 value = str(value)
6 model = self._calendar_treeview.get_model()
7 for row in model:
8- if row[self.TV_COL_ID] == value:
9- return # id already in the treeview
10+ if row[self.TV_COL_ID] == value :# id already in the treeview
11+ if row[self.TV_COL_COLOR] != color: # the color assigned is the old one
12+ row[self.TV_COL_COLOR] = color #replace it with new one.
13+ return
14 iter = model.append()
15 model.set(iter, self.TV_COL_ID, value,
16 self.TV_COL_COLOR, color,