summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/services
diff options
context:
space:
mode:
authorMartin Geubelle <mge@odoo.com>2017-03-28 11:01:36 +0200
committerAaron Bohy <aab@odoo.com>2017-04-11 19:44:38 +0200
commit07f5ac3dabd09dafca261ee596015a50c061a8f8 (patch)
treea50cee0938038a7a2c03e4662e285d60ef9653d0 /addons/web/static/src/js/services
parent7f4e552e3fdea33179c41004ee2b35292534ad08 (diff)
[REF] web: use many2many tag widget in kanban
Some commits haven't been correctly forward-ported, like https://github.com/odoo/enterprise/commit/2a3494a005f38baf2fd3db2c23844129e969e464 or https://github.com/odoo/enterprise/commit/5664a19045abed0cf900ef255bd3c96e16e8886c There purpose is to use the many2many tag widget in the kanban renderer instead of custom manipulation. The tests have also been adapted to correspond to the new tags.
Diffstat (limited to 'addons/web/static/src/js/services')
-rw-r--r--addons/web/static/src/js/services/data_manager.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/web/static/src/js/services/data_manager.js b/addons/web/static/src/js/services/data_manager.js
index abcf10a2e6d..cb2773fd2be 100644
--- a/addons/web/static/src/js/services/data_manager.js
+++ b/addons/web/static/src/js/services/data_manager.js
@@ -392,6 +392,10 @@ return core.Class.extend({
if (!Widget) {
console.warn("Missing widget: ", attrs.widget, " for field", attrs.name, "of type", field.type);
}
+ } else if (viewType === 'kanban' && field.type === 'many2many') {
+ // we want to display the widget many2manytags in kanban even if it
+ // is not specified in the view
+ Widget = fieldRegistry.get('kanban.many2many_tags');
}
return Widget || fieldRegistry.getAny([viewType + "." + field.type, field.type, "abstract"]);
},