[FIX] account_reconcile_oca: Depending on how the widget is opened, there is not always this.form_controller

pull/808/head
Tom 2025-01-14 23:09:19 +01:00 committed by Jordi Ballester Alomar
parent e0250824ed
commit 497c2154d1
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,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,