This commit will trap the focus on the dialog, this will avoid modifying a background record when a dialog is open. Trapping the focus on the dialog is a well-known technique for modals (dialog). closes odoo/odoo#96361 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>