summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml
diff options
context:
space:
mode:
authorniv-openerp <nicolas.vanhoren@openerp.com>2013-03-06 16:13:06 +0100
committerniv-openerp <nicolas.vanhoren@openerp.com>2013-03-06 16:13:06 +0100
commit13ec67e4781b3ca117b193da29a7b66124efbe74 (patch)
treef649cbf3905c49b60abc35746e3f6407de5fcb85 /addons/web/static/src/xml
parentd1c7b2bf3c60488928055c3965630588133720a5 (diff)
[FIX] visual problem in some cases in field texts, solved by switching field texts to simple html output instead of textarea when in read-only mode
lp bug: https://launchpad.net/bugs/1149640 fixed bzr revid: nicolas.vanhoren@openerp.com-20130306151306-1qwv04bvw50z81z9
Diffstat (limited to 'addons/web/static/src/xml')
-rw-r--r--addons/web/static/src/xml/base.xml27
1 files changed, 16 insertions, 11 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index f76b888a029..bd4f2f15e1f 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -1032,17 +1032,22 @@
</t>
<t t-name="FieldText">
<div class="oe_form_field oe_form_field_text" t-att-style="widget.node.attrs.style">
- <textarea rows="6"
- t-att-name="widget.name"
- class="field_text"
- t-att-tabindex="widget.node.attrs.tabindex"
- t-att-autofocus="widget.node.attrs.autofocus"
- t-att-placeholder="! widget.get('effective_readonly') ? widget.node.attrs.placeholder : ''"
- t-att-maxlength="widget.field.size"
- ></textarea><img class="oe_field_translate oe_input_icon"
- t-if="widget.field.translate and !widget.get('effective_readonly')"
- t-att-src='_s + "/web/static/src/img/icons/terp-translate.png"' width="16" height="16" border="0"
- />
+ <t t-if="!widget.get('effective_readonly')">
+ <textarea rows="6"
+ t-att-name="widget.name"
+ class="field_text"
+ t-att-tabindex="widget.node.attrs.tabindex"
+ t-att-autofocus="widget.node.attrs.autofocus"
+ t-att-placeholder="! widget.get('effective_readonly') ? widget.node.attrs.placeholder : ''"
+ t-att-maxlength="widget.field.size"
+ ></textarea><img class="oe_field_translate oe_input_icon"
+ t-if="widget.field.translate and !widget.get('effective_readonly')"
+ t-att-src='_s + "/web/static/src/img/icons/terp-translate.png"' width="16" height="16" border="0"
+ />
+ </t>
+ <t t-if="widget.get('effective_readonly')">
+ <span class="oe_form_text_content"></span>
+ </t>
</div>
</t>
<t t-name="FieldTextHtml">