[FIX] account_reconcile_oca: Depending on how the widget is opened, there is not always this.form_controller
parent
e0250824ed
commit
497c2154d1
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue