Merge PR #778 into 16.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2025-01-15 07:19:13 +00:00

View File

@@ -113,7 +113,7 @@ export class ReconcileController extends KanbanController {
resId = record.resId; resId = record.resId;
} }
if (this.state.selectedRecordId && this.state.selectedRecordId !== 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({ await this.form_controller.model.root.save({
noReload: true, noReload: true,
stayInEdition: true, stayInEdition: true,