Skip to content
Snippets Groups Projects
Commit c14622fc authored by Aaron Bohy's avatar Aaron Bohy Committed by Jorge Pinna Puissant
Browse files

[FIX] web: correctly close confirm dialog


Let's assume the following scenario:
 - have an action in target new (e.g. a form view)
 - in the dialog, have an action/object button with confirm
   attribute
 - when clicking on that button, a confirm dialog opens
 - if validated, the following action returned by the server
   is again an action in target new

Before this commit, the confirm dialog remained in the DOM.

This issue occurred because it's parent wasn't correctly set (wrong
use of `this`), so when the first dialog was destroyed, the confirm
dialog wasn't automatically destroyed in turn.

OPW~2440712

closes odoo/odoo#66597

X-original-commit: 98f9cb4f
Signed-off-by: default avatarJorge Pinna Puissant (jpp) <jpp@odoo.com>
parent 7c9c9e39
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment