From a75961364b2c7055a044b87ceba435dc829ce8a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Mon, 17 Oct 2016 15:46:38 +0200 Subject: [PATCH] [FIX] web: properly apply styles attribute to form fields The form widgets did not apply the 'style' attribute to the result of the rendering. Because of that, many small adjustment were no longer possible. This commit makes sure that it is indeed done. --- addons/web/static/src/js/views/form_common.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web/static/src/js/views/form_common.js b/addons/web/static/src/js/views/form_common.js index f869842415c..6752885f372 100644 --- a/addons/web/static/src/js/views/form_common.js +++ b/addons/web/static/src/js/views/form_common.js @@ -430,6 +430,7 @@ var FormWidget = Widget.extend(InvisibilityChangerMixin, { this.process_modifiers(); this._super(); this.$el.addClass(this.node.attrs["class"] || ""); + this.$el.attr('style', this.node.attrs.style); }, destroy: function() { $.fn.tooltip('destroy');