[imp] made readonly mode

bzr revid: nicolas.vanhoren@openerp.com-20120507151548-pr82xavkghp9by3s
This commit is contained in:
niv-openerp
2012-05-07 17:15:48 +02:00
parent 8e8adf320c
commit 7eb29a4787
4 changed files with 97 additions and 11 deletions
+12 -1
View File
@@ -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>