From 961a01b9b8727ec50542e71d3f4d5ea876b7da64 Mon Sep 17 00:00:00 2001 From: Bruno Boi Date: Thu, 16 Mar 2023 10:21:18 +0000 Subject: [PATCH] [FIX] web: classes handling for x2many fields Since c857473 the Kanban arch parser do not take into account the root node class attribute anymore. This lead to an issue regarding the x2many fields making use of kanban views. This commit brings the following changes: - the kanban and list arch parsers now share the class attribute in their arch infos. - the x2many field adds the className from arch infos to its root node. closes odoo/odoo#115534 X-original-commit: 980244fa8bf2b720527e457f22c4039c450eed5b Signed-off-by: Aaron Bohy (aab) Signed-off-by: Bruno Boi (boi) --- .../src/views/fields/x2many/x2many_field.xml | 2 +- .../src/views/kanban/kanban_arch_parser.js | 2 + .../static/src/views/list/list_arch_parser.js | 2 + .../views/fields/one2many_field_tests.js | 95 ++++++++++++++++++- 4 files changed, 96 insertions(+), 5 deletions(-) diff --git a/addons/web/static/src/views/fields/x2many/x2many_field.xml b/addons/web/static/src/views/fields/x2many/x2many_field.xml index 73cc12099a7..5504402ccd5 100644 --- a/addons/web/static/src/views/fields/x2many/x2many_field.xml +++ b/addons/web/static/src/views/fields/x2many/x2many_field.xml @@ -2,7 +2,7 @@ -
+