summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorniv-openerp <nicolas.vanhoren@openerp.com>2012-05-07 17:15:48 +0200
committerniv-openerp <nicolas.vanhoren@openerp.com>2012-05-07 17:15:48 +0200
commit7eb29a47870e7fb62f97cffb3d361eba03e58801 (patch)
treeb68e493bcb9fb1e4f1b8a5f4117aff619dffca09 /addons/web/static/src/xml/base.xml
parent8e8adf320c6fe00c7aa9ecbebdd244ecf26e3425 (diff)
[imp] made readonly mode
bzr revid: nicolas.vanhoren@openerp.com-20120507151548-pr82xavkghp9by3s
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
-rw-r--r--addons/web/static/src/xml/base.xml13
1 files changed, 12 insertions, 1 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index e0ae9adf9e2..a142ac40756 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -1041,9 +1041,20 @@
</t>
<t t-name="FieldMany2ManyTags">
<div class="oe_form_field_many2manytags">
- <textarea rows="1" style="width: 100%"></textarea>
+ <t t-if="! widget.get('effective_readonly')">
+ <textarea rows="1" style="width: 100%"></textarea>
+ </t>
</div>
</t>
+<t t-name="FieldMany2ManyTags.box">
+ <t t-set="i" t-value="0"/>
+ <t t-foreach="elements" t-as="el">
+ <span class="oe_form_field_many2manytags_box" t-att-data-index="i">
+ <t t-esc="el[1]"/>
+ </span>
+ <t t-set="i" t-value="i + 1"/>
+ </t>
+</t>
<t t-name="FieldReference">
<table class="oe_form_field_reference oe_frame oe_forms" border="0" cellpadding="0" cellspacing="0">
<tr>