Skip to content
Permalink
Browse files

[FIX] web: restore state session action dispatching at loadState

e935099 restored the /apps/<app> controller and introduced  a test.

Despite the test still working, the feature was broken at higher level with
19eacf7 refactoring.
Indeed, loadState was not called anymore even if state.sa existed.

Enterprise counterpart odoo/enterprise#5974

closes #38206

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
  • Loading branch information...
rdeodoo committed Oct 8, 2019
1 parent 1bb12ef commit 0bc44afd8242397a9f1b478b18ba7ab847318c39
Showing with 1 addition and 1 deletion.
  1. +1 −1 addons/web/static/src/js/chrome/web_client.js
@@ -141,7 +141,7 @@ return AbstractWebClient.extend({
var stringstate = $.bbq.getState(false);
if (!_.isEqual(self._current_state, stringstate)) {
var state = $.bbq.getState(true);
if (state.action || (state.model && (state.view_type || state.id))) {
if (state.sa || state.action || (state.model && (state.view_type || state.id))) {
return self.action_manager.loadState(state, !!self._current_state).then(function () {
if (state.menu_id) {
if (state.menu_id !== self.menu.current_primary_menu) {

0 comments on commit 0bc44af

Please sign in to comment.
You can’t perform that action at this time.