From cceb20537165a2da5ddd3e23407d0ba617f49944 Mon Sep 17 00:00:00 2001 From: Lucas Perais Date: Wed, 10 Aug 2022 12:34:36 +0000 Subject: [PATCH] [FIX] web: legacy field retrieves noLabel from the legacy widget Have a legacy field with the noLabel attribute to true (in the actual widget definition). Put that field in a list view (new OWL framework). Before this commit, the noLabel attribute was not taken into account. After this commit, it is. closes odoo/odoo#97899 Signed-off-by: Lucas Perais (lpe) --- addons/web/static/src/legacy/legacy_fields.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web/static/src/legacy/legacy_fields.js b/addons/web/static/src/legacy/legacy_fields.js index 20744407f97..f094dddad65 100644 --- a/addons/web/static/src/legacy/legacy_fields.js +++ b/addons/web/static/src/legacy/legacy_fields.js @@ -347,6 +347,7 @@ function registerField(name, LegacyFieldWidget) { LegacyField.fieldsToFetch = LegacyFieldWidget.prototype.fieldsToFetch || {}; LegacyField.fieldDependencies = LegacyFieldWidget.prototype.fieldDependencies || {}; LegacyField.useSubView = LegacyFieldWidget.prototype.useSubview; + LegacyField.noLabel = LegacyFieldWidget.prototype.noLabel || false; if (!fieldRegistry.contains(name)) { if (odoo.debug) { console.log(`Fields: using legacy ${name} FieldWidget`);