summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/field_registry.js
diff options
context:
space:
mode:
authorMartin Geubelle <mge@odoo.com>2019-03-06 16:20:10 +0000
committerMartin Geubelle <mge@odoo.com>2019-03-07 08:45:41 +0000
commit590c9d8e3389c1b9e011b3658e21ad2ca4acdd53 (patch)
tree91a8dd0a21c84a256eafcf4e2893ea3868e908e4 /addons/web/static/src/js/fields/field_registry.js
parent7698f18ddd09f0eeac4179ad9f31a50a799fec86 (diff)
[FIX] web: add a fallback for `kanban_label_selection`
Before 11.0 the kanban view used to have its own widget registry. It is not the case anymore, but there are still leftovers from the past. For example, the widget `kanban_label_selection` is still used in many views, even though it is now called `label_selection`. As we are in a stable version, a fallback has been added for it in the field registry. Similar to odoo/odoo@5401c15 Closes odoo/odoo#30904 Closes odoo/odoo#25928
Diffstat (limited to 'addons/web/static/src/js/fields/field_registry.js')
-rw-r--r--addons/web/static/src/js/fields/field_registry.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/web/static/src/js/fields/field_registry.js b/addons/web/static/src/js/fields/field_registry.js
index fb7dc432154..b5c919a4832 100644
--- a/addons/web/static/src/js/fields/field_registry.js
+++ b/addons/web/static/src/js/fields/field_registry.js
@@ -41,8 +41,9 @@ registry
.add('attachment_image', basic_fields.AttachmentImage)
.add('image_selection', basic_fields.ImageSelection)
.add('label_selection', basic_fields.LabelSelection)
+ .add('kanban_label_selection', basic_fields.LabelSelection) // deprecated, use label_selection
.add('state_selection', basic_fields.StateSelectionWidget)
- .add('kanban_state_selection', basic_fields.StateSelectionWidget)
+ .add('kanban_state_selection', basic_fields.StateSelectionWidget) // deprecated, use state_selection
.add('boolean_favorite', basic_fields.FavoriteWidget)
.add('boolean_button', basic_fields.FieldBooleanButton)
.add('boolean_toggle', basic_fields.BooleanToggle)