diff options
| author | Deep Patel <dep@odoo.com> | 2017-09-12 18:40:29 +0530 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2017-09-20 10:56:57 +0200 |
| commit | 9b9fcfe628f330bf31bfb841476d496e7892153f (patch) | |
| tree | 4318a8c3bed39f67362f15ef835311c3f969c655 /addons/web/static/src/js/fields/field_registry.js | |
| parent | 48b8be29fa1e8c10f2ce652a768d3dcb581a53a2 (diff) | |
[FIX] web,base: document template widget in settings
Go to General Settings, click on 'Change Document Template', and
in the opened dialog, click on a template.
Before this rev., it automatically closed the dialog, which was
not really convenient.
This rev. introduces a new field widget (image_selection) for
this use case, and ensures that the dialog doesn't close when
a template is selected.
Test written by @mba-odoo
Diffstat (limited to 'addons/web/static/src/js/fields/field_registry.js')
| -rw-r--r-- | addons/web/static/src/js/fields/field_registry.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/src/js/fields/field_registry.js b/addons/web/static/src/js/fields/field_registry.js index 019a98e51f1..61e371d867a 100644 --- a/addons/web/static/src/js/fields/field_registry.js +++ b/addons/web/static/src/js/fields/field_registry.js @@ -37,6 +37,7 @@ registry .add('monetary', basic_fields.FieldMonetary) .add('priority', basic_fields.PriorityWidget) .add('attachment_image', basic_fields.AttachmentImage) + .add('image_selection', basic_fields.ImageSelection) .add('label_selection', basic_fields.LabelSelection) .add('state_selection', basic_fields.StateSelectionWidget) .add('kanban_state_selection', basic_fields.StateSelectionWidget) |
