[IMP] small modif in textfield
authorniv-openerp <nicolas.vanhoren@openerp.com>
Wed, 27 Jun 2012 15:22:34 +0000 (17:22 +0200)
committerniv-openerp <nicolas.vanhoren@openerp.com>
Wed, 27 Jun 2012 15:22:34 +0000 (17:22 +0200)
bzr revid: nicolas.vanhoren@openerp.com-20120627152234-e3zc1qrtjwqtkinf

addons/web/static/src/xml/base.xml

index 4b3457f..9c4e2a1 100644 (file)
             class="field_text"
             t-att-tabindex="widget.node.attrs.tabindex"
             t-att-autofocus="widget.node.attrs.autofocus"
-            t-att-placeholder="widget.node.attrs.placeholder"
+            t-att-placeholder="! widget.get('effective_readonly') ? widget.node.attrs.placeholder : ''"
         ></textarea>
         <img class="oe_field_translate oe_input_icon" t-if="widget.field.translate"
             t-att-src='_s + "/web/static/src/img/icons/terp-translate.png"' width="16" height="16" border="0"/>