Do an action that will change the hash. During this, change the url hash to load another action Before this commit, the hash taken to load the second action was wrong, because the first action pushed its state instants before the hashchange event is actually triggered. This is because the hashchange event is triggered in a non blocking stack (https://html.spec.whatwg.org/multipage/browsing-the-web.html#scroll-to-fragid) After this commit, the right action is loaded with the right hash closes odoo/odoo#72878 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>