[FIX] account: split the actions to open analytic accounts, as context is not compatible
authorOlivier Dony <odo@openerp.com>
Tue, 7 May 2013 16:51:13 +0000 (18:51 +0200)
committerOlivier Dony <odo@openerp.com>
Tue, 7 May 2013 16:51:13 +0000 (18:51 +0200)
commit325f710360256bcd413069534f5e6ca391706a04
tree552f377118c6680bd1154e92d752cf35817e46b6
parent54ad990e4826734ec30b3a191977a350ff1fad75
[FIX] account: split the actions to open analytic accounts, as context is not compatible

The same action was erroneously used in two incompatible
cases: once for openining the list of analytic accounts
from a partner form view (requires a special context
with a client-side `active_id` variable) and the second
one for the main Analytic Account menu item (which
cannot have `active_id` in the context - it would crash).

The fix includes setting an empty ({}) context explicitly
on the original action to be sure the incorrect context
is removed upon update.

The error was introduced at rev.8685
revid:qdp-launchpad@openerp.com-20130418125951-8p0tfexd9jj8l75b

bzr revid: odo@openerp.com-20130507165113-67lam91046t56ky8
addons/account/__openerp__.py
addons/account/partner_view.xml
addons/account/project/project_view.xml