summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
-rw-r--r--addons/web/static/src/xml/base.xml14
1 files changed, 8 insertions, 6 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 5d8aa5c704b..c8df69c2bdc 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -1002,12 +1002,14 @@
</t>
</t>
<t t-name="FieldText">
- <div t-attf-class="oe_form_field_#{widget.type}">
- <textarea rows="6"
- t-att-name="widget.name"
- t-attf-class="field_#{widget.type}"
- ></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"/>
- </div>
+ <t t-if="!widget.get('effective_readonly')">
+ <div t-attf-class="oe_form_field_#{widget.type}">
+ <textarea rows="6"
+ t-att-name="widget.name"
+ t-attf-class="field_#{widget.type}"
+ ></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"/>
+ </div>
+ </t>
</t>
<t t-name="web.datetimepicker">
<div class="oe_datepicker_root" t-attf-class="oe_form_field_#{widget.type}">