This patch reverts the previous patch for OPW 573269 that did not properly fix all cases (workflow buttons for instance). This is a backport of the trunk fix. previous fix: rev-id: xal@openerp.com-20120417145330-ln0mpp06s886z1us trunk fix: r.3104 rev-id: nicolas.vanhoren@openerp.com-20120924125355-m1b53sjb6hle789z bzr revid: odo@openerp.com-20120924152628-fj2tp1yezjx5htx0