Merge lp:~openerp-dev/openobject-client-web/6.0-bug_753340-rco into lp:openobject-client-web

Proposed by Raphael Collet (OpenERP)
Status: Merged
Approved by: Xavier (Open ERP)
Approved revision: no longer in the source branch.
Merged at revision: 4573
Proposed branch: lp:~openerp-dev/openobject-client-web/6.0-bug_753340-rco
Merge into: lp:openobject-client-web
Diff against target: 21 lines (+4/-4)
1 file modified
addons/openerp/controllers/tree.py (+4/-4)
To merge this branch: bzr merge lp:~openerp-dev/openobject-client-web/6.0-bug_753340-rco
Reviewer Review Type Date Requested Status
OpenERP R&D Web Team Pending
Review via email: mp+56739@code.launchpad.net

Description of the change

Fix actions_url in menus in the web client

To post a comment you must log in.
4570. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'addons/openerp/controllers/tree.py'
2--- addons/openerp/controllers/tree.py 2011-01-24 09:01:47 +0000
3+++ addons/openerp/controllers/tree.py 2011-04-08 08:44:27 +0000
4@@ -199,13 +199,13 @@
5 icon = item.pop(icon_name)
6 record['icon'] = icons.get_icon(icon)
7
8- if icon == 'STOCK_OPEN':
9- record['action'] = None
10- record['target'] = None
11-
12 if field_parent and field_parent in item:
13 record['children'] = item.pop(field_parent) or None
14
15+ # don't put an action for menu items with children
16+ if model == 'ir.ui.menu' and record['children']:
17+ record['action'] = None
18+
19 records.append(record)
20
21 return {'records': records}