summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2016-10-17 15:46:38 +0200
committerGéry Debongnie <ged@odoo.com>2016-10-17 16:33:09 +0200
commita75961364b2c7055a044b87ceba435dc829ce8a1 (patch)
tree5e7592e0e83c0d8157d5ab9ced8a80cb1ae2caf1 /addons/web/static/src
parentba6ca788fd80a1b963b8059bd287317399389283 (diff)
[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.
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/js/views/form_common.js1
1 files changed, 1 insertions, 0 deletions
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');