Skip to content

Commit

Permalink
[FIX] account_reconcile_oca: Depending on how the widget is opened, t…
Browse files Browse the repository at this point in the history
…here is not always this.form_controller
  • Loading branch information
thomaspaulb committed Jan 16, 2025
1 parent 0065425 commit 387830b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 387830b

Please sign in to comment.