From 6f98370b385216241577ec3be603ede97fafc1d8 Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Tue, 14 Feb 2012 17:34:43 +0100 Subject: [PATCH] [FIX] Fix little regression about translatable fields styling bzr revid: fme@openerp.com-20120214163443-pz7nmhj1ktbfhucm --- addons/web/static/src/css/base.css | 1 + addons/web/static/src/js/view_form.js | 1 + 2 files changed, 2 insertions(+) diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css index 4ddb730..e51b2e1 100644 --- a/addons/web/static/src/css/base.css +++ b/addons/web/static/src/css/base.css @@ -1221,6 +1221,7 @@ label.error { padding: 2px; position: relative; } +.openerp td.oe_form_field_translatable, .openerp td.oe_form_field_many2one, .openerp td.oe_form_field_date, .openerp td.oe_form_field_datetime { diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index 8c9b99a..a1f99a9 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -1361,6 +1361,7 @@ openerp.web.form.Field = openerp.web.form.Widget.extend(/** @lends openerp.web.f this._super.apply(this, arguments); if (this.field.translate) { this.view.translatable_fields.push(this); + this.$element.addClass('oe_form_field_translatable'); this.$element.find('.oe_field_translate').click(this.on_translate); } if (this.nolabel && openerp.connection.debug) { -- 1.7.10.4