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,