Skip to content

Commit

Permalink
Merge PR OCA#796 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by simahawk
  • Loading branch information
OCA-git-bot committed Jan 15, 2024
2 parents 7e69948 + 9510682 commit 443ddad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions shopfloor_mobile_base/static/wms/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ new Vue({
self.profile = profile;
self.loadMenu(true);
});
event_hub.$on("menu_drawer:update", function () {
self.loadMenu(true);
});
event_hub.$emit("app:mounted", self, false);
},
computed: {
Expand Down
3 changes: 3 additions & 0 deletions shopfloor_mobile_base/static/wms/src/scenario/mixins.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,9 @@ export var ScenarioBaseMixin = {
// Move to new state, data will be refreshed right after.
this.state_to(state_key);
}
// Make sure the counters and all the data from the navigation drawer menu
// is up to date after new data from the backend is received.
event_hub.$emit("menu_drawer:update");
},
on_call_error: function (result) {
alert(result.status + " " + result.error);
Expand Down

0 comments on commit 443ddad

Please sign in to comment.