summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorniv-openerp <nicolas.vanhoren@openerp.com>2012-08-13 17:40:11 +0200
committerniv-openerp <nicolas.vanhoren@openerp.com>2012-08-13 17:40:11 +0200
commit235f8996bf33a99e5f6c17328834e406274cdff9 (patch)
treedc9acab7dc48daf2913cc4d409a4787393ea5d43 /addons/web/static/src/xml/base.xml
parent8c7b192ab7c89688a8c8f81c1a6d2be480610557 (diff)
Implemented read only mode
bzr revid: nicolas.vanhoren@openerp.com-20120813154011-hgq3vxxdps5s9w91
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
-rw-r--r--addons/web/static/src/xml/base.xml5
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 061f74c246f..9b22a7c7ff7 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -976,8 +976,11 @@
</div>
</t>
<t t-name="FieldTextHtml">
- <div class="oe_form_field oe_form_field_text" t-att-style="widget.node.attrs.style">
+ <div t-att-class="'oe_form_field oe_form_field_html' + (widget.get('effective_readonly') ? ' oe_form_embedded_html' : '')"
+ t-att-style="widget.node.attrs.style">
+ <t t-if="! widget.get('effective_readonly')">
<textarea/>
+ </t>
</div>
</t>
<t t-name="web.datepicker">