From c3b274676d28935da3946a54c18e06c719061c6c Mon Sep 17 00:00:00 2001 From: Carlos Roca Date: Mon, 2 Feb 2026 17:34:35 +0100 Subject: [PATCH 1/2] [FIX] vault: Error when cancel the key popup --- vault/static/src/common/vault_utils_service.esm.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/vault/static/src/common/vault_utils_service.esm.js b/vault/static/src/common/vault_utils_service.esm.js index 1ffafd3912..acc39cbf97 100644 --- a/vault/static/src/common/vault_utils_service.esm.js +++ b/vault/static/src/common/vault_utils_service.esm.js @@ -43,7 +43,6 @@ export class AskPassDialog extends Component { } onCancel() { - this.props.onReject(_t("Cancelled")); this.props.close(); } } @@ -88,7 +87,6 @@ export class GeneratePassDialog extends Component { } onCancel() { - this.props.onReject(_t("Cancelled")); this.props.close(); } @@ -111,22 +109,20 @@ export const vaultUtilsService = { title, confirm: Boolean(options.confirm), }; - return new Promise((resolve, reject) => { + return new Promise((resolve) => { dialog.add(AskPassDialog, { ...props, onResolve: resolve, - onReject: reject, }); }); } function generate_pass(title, options = {}) { const props = {title, ...options}; - return new Promise((resolve, reject) => { + return new Promise((resolve) => { dialog.add(GeneratePassDialog, { ...props, onResolve: resolve, - onReject: reject, }); }); } From 4ba610407704eda05b1897a469a13f35067a30b7 Mon Sep 17 00:00:00 2001 From: Carlos Roca Date: Tue, 3 Feb 2026 09:17:01 +0100 Subject: [PATCH 2/2] [IMP] vault: Don't require keys on service load to avoid annoying notifications --- vault/static/src/backend/vault.esm.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/vault/static/src/backend/vault.esm.js b/vault/static/src/backend/vault.esm.js index b16a4e0584..7c28e3b838 100644 --- a/vault/static/src/backend/vault.esm.js +++ b/vault/static/src/backend/vault.esm.js @@ -44,24 +44,6 @@ const vaultService = { } class Vault { - /** - * Check if the user actually has keys otherwise generate them on init - * - * @override - */ - constructor() { - const self = this; - - function waitAndCheck() { - if (!vault_utils.supported()) return null; - - if (odoo.isReady) self._initialize_keys(); - else setTimeout(waitAndCheck, 500); - } - - setTimeout(waitAndCheck, 500); - } - /** * Generate a new key pair and export to database and object store */