Create new context record with default value
Screen.new_ is returning already a promise that is resolved after the call to default_get. This ensure that display is triggered after having set the default value. Closes #13697
This commit is contained in:
+1
-4
@@ -833,10 +833,7 @@
|
||||
'class': 'col-md-12'
|
||||
}).append(this.context_screen.screen_container.el))
|
||||
.prependTo(this.screen_container.filter_box);
|
||||
return this.context_screen.new_(false).then(
|
||||
// Set manually default to get context_screen_prm
|
||||
// resolved when default is set.
|
||||
record => record.default_get());
|
||||
return this.context_screen.new_();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user