summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_model.js
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2018-02-19 13:42:11 +0100
committerAaron Bohy <aab@odoo.com>2018-02-20 09:39:44 +0100
commitd3372e4f8eace7ee8dfc37900f74198318662980 (patch)
treea6dad537ad145a2365bebef9ff54351de2ceaaf1 /addons/web/static/src/js/views/basic/basic_model.js
parente7c142f6b4cbb4add64586c30297f0c3f983de88 (diff)
[FIX] web: ActionManager: don't rely on view_mode
When executing an act_window action, the ActionManager has to determine whether or not the first view of the action is a form view (typically, when this happens, this is also the only view of the action, and most of the time, it is displayed in a dialog, i.e. the action's target is 'new'). This ensures that the control panel is correctly shown/hidden, that form buttons are correctly rendered and displayed at the right place, and so on. Before this rev., it uses the view_mode to do that, but there is no guarantee that the view_mode is even defined (for instance, actions returned from python methods don't have to define it), so from now on, we use the 'views' attribute instead, which must always be set.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions