Merge lp:~openerp-dev/openerp-web/6.1-opw-576380-msh into lp:openerp-web/6.1
Status: | Needs review |
---|---|
Proposed branch: | lp:~openerp-dev/openerp-web/6.1-opw-576380-msh |
Merge into: | lp:openerp-web/6.1 |
Diff against target: |
13 lines (+4/-0) 1 file modified
addons/web/controllers/main.py (+4/-0) |
To merge this branch: | bzr merge lp:~openerp-dev/openerp-web/6.1-opw-576380-msh |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Xavier (Open ERP) (community) | Needs Information | ||
Review via email: mp+115069@code.launchpad.net |
Description of the change
Hello,
Fixed the issue of active_id and active_ids, if there is not active_id or active_ids in context so passed False and [] respectively.
Demo -> Marketing/
Got Error of active_id.
Generally this issue is not generated as we will not have any action on menu where we have passed active_id or active_ids which obvious thing that while we calling menu_action at that time we will not have the active_id or active_ids, but here why we are facing this issue is due to addons code, where we have reused the action defined for act_window, we have reused the action "act_event_
Hence to make the same behaviour as GTK sets False and [] for active_id and active_ids respectively, so that when action is reused it should not give error of context evaluation.
Thanks.
Unmerged revisions
- 2408. By Mohammed Shekha(Open ERP)
-
[FIX]Fixed the issue of active_id not passed from menu_action.
1. Why should this be hacked around in the web client, instead of being fixed in the addons?
2. In any case, for that behavior I'd rather you use dict.setdefault I think.