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
(grafted from 1dfc23911f2a4cc071a34ec886dc43d949d4b68f)

--HG--
branch : 6.0
This commit is contained in:
Nicolas Évrard
2024-09-24 16:37:50 +02:00
parent 0d038bf2ff
commit dc70c2cd28
+2 -2
View File
@@ -1516,10 +1516,10 @@
if (previous_view.view_type == 'calendar') {
previous_view.set_default_date(record, selected_date);
}
this.display().done(function() {
return this.display().then(function() {
this.set_cursor(true, true);
return record;
}.bind(this));
return record;
}.bind(this));
}.bind(this));
},