Return the display promise when creating a new record from the screen
This is necessary because otherwise it could result in concurrent update of the models of the models used by the underlying widgets. Closes #13545
This commit is contained in:
+2
-2
@@ -1545,10 +1545,10 @@
|
||||
if (previous_view.view_type == 'calendar') {
|
||||
previous_view.set_default_date(record, selected_date);
|
||||
}
|
||||
this.display().done(() => {
|
||||
return this.display().then(() => {
|
||||
this.set_cursor(true, true);
|
||||
return record;
|
||||
});
|
||||
return record;
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user