From 5e8332e7e0e69d1c28b547be3cae8a9a5d5c54a3 Mon Sep 17 00:00:00 2001 From: Tom Date: Tue, 14 Jan 2025 23:09:19 +0100 Subject: [PATCH] [FIX] account_reconcile_oca: Depending on how the widget is opened, there is not always this.form_controller --- .../static/src/js/reconcile/reconcile_controller.esm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_reconcile_oca/static/src/js/reconcile/reconcile_controller.esm.js b/account_reconcile_oca/static/src/js/reconcile/reconcile_controller.esm.js index 8d4777ffca..34ea33ee83 100644 --- a/account_reconcile_oca/static/src/js/reconcile/reconcile_controller.esm.js +++ b/account_reconcile_oca/static/src/js/reconcile/reconcile_controller.esm.js @@ -113,7 +113,7 @@ export class ReconcileController extends KanbanController { resId = record.resId; } if (this.state.selectedRecordId && this.state.selectedRecordId !== resId) { - if (this.form_controller.model.root.isDirty) { + if (this.form_controller && this.form_controller.model.root.isDirty) { await this.form_controller.model.root.save({ noReload: true, stayInEdition: true,