From 86af036ea1175f4a9a5fbca806ab49665fdbc4b0 Mon Sep 17 00:00:00 2001 From: fwi-odoo Date: Fri, 14 Apr 2017 13:02:21 +0200 Subject: [FIX] web: fix various bugs when fetching x2manys in form views - When an one2many is displayed in a list view, the field data are not fully loaded since only the number of record is displayed. Then when the related form view is opened the one2many fields displayed need to be loaded. - Optimized the fetch of x2manys without doing an useless rpc if we don't need all the fields but only the relation records ids and adapt the tests for this optimisation. - Fix wrong inheritance for kanbanmany2many_tags --- addons/web/static/src/js/fields/relational_fields.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/web/static/src/js/fields/relational_fields.js') diff --git a/addons/web/static/src/js/fields/relational_fields.js b/addons/web/static/src/js/fields/relational_fields.js index 7f4fa24e5c2..2d746a81aa1 100644 --- a/addons/web/static/src/js/fields/relational_fields.js +++ b/addons/web/static/src/js/fields/relational_fields.js @@ -1179,7 +1179,7 @@ var FormFieldMany2ManyTags = FieldMany2ManyTags.extend({ }, }); -var KanbanFieldMany2ManyTags = FieldMany2Many.extend({ +var KanbanFieldMany2ManyTags = FieldMany2ManyTags.extend({ _render: function () { var self = this; this.$el.addClass('o_form_field_many2manytags o_kanban_tags'); -- cgit v1.2.3