diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2012-03-20 11:26:50 +0100 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2012-03-20 11:26:50 +0100 |
| commit | cf4159c7f8ea9bf42692a70d5ded529a34111949 (patch) | |
| tree | 7e3fd15f372a336d0761b14f10a47177da0eb681 /addons/web/static/src/xml/base.xml | |
| parent | 386d00f00fc2ca4998b9e621b40381d909fe9d69 (diff) | |
[imp] modified m2o to use the mixin
bzr revid: nicolas.vanhoren@openerp.com-20120320102650-virv6zsj0gf0rjpw
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 42 |
1 files changed, 23 insertions, 19 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index f12079765f9..069f48fb48e 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1037,25 +1037,29 @@ </t> </t> <t t-name="FieldMany2One"> - <table t-attf-class="oe_form_field_#{widget.type}" cellpadding="0" cellspacing="0" border="0"> - <tr> - <td valign="top"> - <t t-call="FieldChar"/> - <span class="oe-m2o-drop-down-button"> - <img t-att-src='_s + "/web/static/src/img/down-arrow.png"' /></span> - </td> - <td> - <button class="oe_button oe_field_button oe-m2o-cm-button" t-att-id="widget.name + '_open'"> - <img t-att-src='_s + "/web/static/src/img/icons/STOCK_DIRECTORY_MENU.png"'/> - </button> - <div t-att-id="widget.cm_id" class="contextMenu" style="display:none"> - </div> - </td> - </tr> - </table> -</t> -<t t-name="FieldMany2One_readonly"> - <a href="#" class="oe_form_uri"/> + <t t-if="!widget.get('effective_readonly')"> + <table t-attf-class="oe_form_field_#{widget.type}" cellpadding="0" cellspacing="0" border="0"> + <tr> + <td valign="top"> + <t t-call="FieldChar"/> + <span class="oe-m2o-drop-down-button"> + <img t-att-src='_s + "/web/static/src/img/down-arrow.png"' /></span> + </td> + <td> + <button class="oe_button oe_field_button oe-m2o-cm-button" t-att-id="widget.name + '_open'"> + <img t-att-src='_s + "/web/static/src/img/icons/STOCK_DIRECTORY_MENU.png"'/> + </button> + <div t-att-id="widget.cm_id" class="contextMenu" style="display:none"> + </div> + </td> + </tr> + </table> + </t> + <t t-if="widget.get('effective_readonly')"> + <div> + <a href="#" class="oe_form_uri"/> + </div> + </t> </t> <t t-name="FieldMany2One.context_menu"> <ul> |
