[IMP] web: allow custom onPushState method

This helper is tested by the account_accountant module. See legacy view adapter.

Task: 2555114
Part-of: odoo/odoo#91448
This commit is contained in:
Julien Mougenot
2022-06-07 10:16:12 +02:00
committed by Laurent Smet
parent bcc5a6efbf
commit 486a21d0e4
@@ -117,7 +117,11 @@ class ActionAdapter extends ComponentAdapter {
this.wowlEnv.config.setDisplayName(actionTitle);
}
}
this.router.pushState(query);
if (this.props.onPushState) {
this.props.onPushState(query);
} else {
this.router.pushState(query);
}
}
_trigger_up(ev) {