Skip to content
Snippets Groups Projects
Commit 61dd61b6 authored by Samuel Degueldre's avatar Samuel Degueldre
Browse files

[FIX] web: avoid pushing state when ActionAdapter is in dialog


Previously, push_state events triggered from withing window actions
inside dialogs would bubble push their state into the URL even while
within a dialog, this is undesirable as this can cause the URL to become
invalid (eg by pushing the id of a record from an entirely different
model)

This commit fixes that by simply checking whether we are in a dialog
within the adapter before calling pushState.

task-2602458

closes odoo/odoo#73720

Signed-off-by: default avatarLucas Perais (lpe) <lpe@odoo.com>
parent 5225b75a
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment