summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2016-03-23 16:37:56 +0100
committerChristophe Matthieu <chm@odoo.com>2016-08-23 17:03:56 +0200
commit6d04c70abea6bbbe198c474a00b8a9c91a8ab69a (patch)
tree797cb5f7142cba36d09f817c1e6ee770c7c3e96a /addons/web/static/src/xml/base.xml
parenta765b3e643f4ad98f319b983dda313e0ebdf931f (diff)
[IMP] web: add ace editor for xml and python edition
* display all lines and don't display the scroll bar into ace editor * lazy read ace lib and add missing lib file * use not minified version of ace lib * Move ace lib from website to web * Added ace widget for webclient * XML mode for view text box * Python mode for server action text box * Removed web_ace_editor.xml, instead added template in base.xml itself * Added widget=ace_editor in compute field of ir.model.fields
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
-rw-r--r--addons/web/static/src/xml/base.xml13
1 files changed, 13 insertions, 0 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index a9f51b12c48..56b69d91225 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -1250,6 +1250,19 @@
</div>
</t>
+<t t-name="AceEditor">
+ <t t-if="!widget.get('effective_readonly')">
+ <div class="oe_form_field o_ace_view_editor oe_ace_open">
+ <div class="ace-view-editor"/>
+ </div>
+ </t>
+ <t t-if="widget.get('effective_readonly')">
+ <div class="oe_form_field oe_form_field_text" t-att-style="widget.node.attrs.style">
+ <span class="oe_form_text_content"></span>
+ </div>
+ </t>
+</t>
+
<t t-name="notification-box">
<div t-att-class="'alert alert-dismissible alert-' + type" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">