diff options
| author | Géry Debongnie <ged@odoo.com> | 2017-09-13 11:48:02 +0200 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2017-09-13 14:04:34 +0200 |
| commit | 93cf24f73ae79cdfd0346145d0b828ebd1ea07f9 (patch) | |
| tree | 25092bf66b9ab6ff1a8ff4b424aca75db7ca0537 /addons/web/views | |
| parent | c1fa3b8ab3dfa1306dbdd3b6dc910405a3357d16 (diff) | |
[FIX] web: reimplement custom widgets in basic views
With the new views, we lost a (almost unused and undocumented) feature:
the ability to instantiate custom widgets in a form view, not linked to
a particular field. For example:
<widget type="weekly_timesheet" attrs="{'readonly': [['state', 'not in', ['new', 'draft']]]}"/>
We reintroduce this feature in this commit, with a nice twist: it also
works for the list view and the kanban view.
Diffstat (limited to 'addons/web/views')
| -rw-r--r-- | addons/web/views/webclient_templates.xml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/views/webclient_templates.xml b/addons/web/views/webclient_templates.xml index 16142eb2ae7..4aa0eb812da 100644 --- a/addons/web/views/webclient_templates.xml +++ b/addons/web/views/webclient_templates.xml @@ -181,6 +181,7 @@ <script type="text/javascript" src="/web/static/src/js/fields/abstract_field.js"></script> <script type="text/javascript" src="/web/static/src/js/fields/basic_fields.js"></script> <script type="text/javascript" src="/web/static/src/js/fields/field_registry.js"></script> + <script type="text/javascript" src="/web/static/src/js/views/basic/widget_registry.js"></script> <script type="text/javascript" src="/web/static/src/js/fields/field_utils.js"></script> <script type="text/javascript" src="/web/static/src/js/fields/relational_fields.js"></script> <script type="text/javascript" src="/web/static/src/js/fields/special_fields.js"></script> |
