summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
-rw-r--r--addons/web/static/src/xml/base.xml42
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>