Merge lp:~openerp-dev/openobject-client/dev_client_rga into lp:openobject-client

Proposed by Ravi Gadhia (OpenERP)
Status: Rejected
Rejected by: Naresh(OpenERP)
Proposed branch: lp:~openerp-dev/openobject-client/dev_client_rga
Merge into: lp:openobject-client
Diff against target: 34 lines (+7/-4)
2 files modified
bin/modules/gui/main.py (+4/-2)
bin/widget/view/calendar_gtk/parser.py (+3/-2)
To merge this branch: bzr merge lp:~openerp-dev/openobject-client/dev_client_rga
Reviewer Review Type Date Requested Status
Naresh(OpenERP) Needs Resubmitting
Review via email: mp+46461@code.launchpad.net

Description of the change

Hello,
   My branch fixed following bug
   https://bugs.launchpad.net/openobject-client/+bug/702772

Thanks

To post a comment you must log in.
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

please send proposal to dev-client

Thanks

review: Needs Resubmitting

Unmerged revisions

1440. By Ravi Gadhia (OpenERP)

Merge with trunk client

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bin/modules/gui/main.py'
2--- bin/modules/gui/main.py 2011-01-07 10:03:46 +0000
3+++ bin/modules/gui/main.py 2011-01-17 10:33:47 +0000
4@@ -864,8 +864,10 @@
5 if action:
6 ctx = rpc.session.context.copy()
7 obj = service.LocalService('action.main')
8- obj.exec_keyword('tree_but_open', {'model': 'ir.ui.menu', 'id': action[0],
9- 'ids': [action[0]], 'report_type': 'pdf', 'window': self.window}, context=ctx)
10+ if not isinstance(action, int):
11+ action = action[0]
12+ obj.exec_keyword('tree_but_open', {'model': 'ir.ui.menu', 'id': action,
13+ 'ids': [action], 'report_type': 'pdf', 'window': self.window}, context=ctx)
14
15 if sc is None:
16 uid = rpc.session.uid
17
18=== modified file 'bin/widget/view/calendar_gtk/parser.py'
19--- bin/widget/view/calendar_gtk/parser.py 2010-12-21 12:52:36 +0000
20+++ bin/widget/view/calendar_gtk/parser.py 2011-01-17 10:33:47 +0000
21@@ -325,10 +325,11 @@
22 if models:
23 self.models = models.models
24 self.models_record_group = models
25-
26+ model_lst = [model for model in self.models if not isinstance(model.id, int)]
27+ if model_lst:
28+ self.models = model_lst
29 if self.models:
30 self.__update_colors()
31-
32 self.cal_model.remove_events()
33 self.cal_model.add_events(self.__get_events())
34 self.modex = self.mode