diff options
| author | Elkasitu <adt@odoo.com> | 2017-07-17 11:09:35 +0200 |
|---|---|---|
| committer | Elkasitu <adt@odoo.com> | 2017-07-18 15:12:55 +0200 |
| commit | e83c3e2678500c9bf2c17b4d23ae9a294ebafaa7 (patch) | |
| tree | ccdbcd92402deb11b9c68b76689ab8e2448cbd82 /addons/web/static/src/js/views/basic/basic_view.js | |
| parent | f7dd085e80c463c828396408f37c12700fec36de (diff) | |
[FIX] web: Fix actions for widgets w/o controllers
Execution of actions is usually done with trigger_up, which delegates
the action execution to the widget's controller.
This is troublesome for actions done on widgets that have no
controllers, like widgets in Studio for example.
The commit fixes this by adding a standalone option for AbstractFields,
if the flag is true when instantiating a widget, the action will be
called directly from within the widget object and will not be propagated
upwards.
A test to verify that this works properly has been added as well
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_view.js')
0 files changed, 0 insertions, 0 deletions
