diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2012-07-25 14:35:43 +0200 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2012-07-25 14:35:43 +0200 |
| commit | 175d5ff509e66d9d9014a19a6a4493c4a8d1d182 (patch) | |
| tree | 51dac3dd5587911a0253b8a8e03917c928d7f909 /addons/web/static/src/xml | |
| parent | ac580aeae09c2bc76e7c5c090567b7bc7ba24b25 (diff) | |
[IMP] added option "no_open" in m2o
bzr revid: nicolas.vanhoren@openerp.com-20120725123543-fzzefu57lwy5xksd
Diffstat (limited to 'addons/web/static/src/xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 5d55a0ece15..4ce36fe86d4 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -955,11 +955,13 @@ <t t-name="FieldMany2One"> <span class="oe_form_field oe_form_field_many2one oe_form_field_with_button" t-att-style="widget.node.attrs.style"> <t t-if="widget.get('effective_readonly')"> - <a href="#" class="oe_form_uri"/> + <a t-if="! widget.get_definition_options().no_open" href="#" class="oe_form_uri"/> + <span t-if="widget.get_definition_options().no_open" href="#" class="oe_form_uri"/> <span class="oe_form_m2o_follow"/> </t> <t t-if="!widget.get('effective_readonly')"> - <a href="#" tabindex="-1" class="oe_m2o_cm_button oe_e oe_right">/</a> + <a t-if="! widget.get_definition_options().no_open" href="#" tabindex="-1" + class="oe_m2o_cm_button oe_e oe_right">/</a> <div> <input type="text" t-att-id="widget.id_for_label" |
