summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2014-06-05 13:46:53 +0200
committerChristophe Simonis <chs@odoo.com>2014-06-05 13:46:53 +0200
commitab9ac783db123fbcd5ef12cf232711a64a9aa97b (patch)
treeffd7868a2f37fa204af6c5fe2497fb5135c9aa33 /addons/web/static/src/xml
parent426993e06d0b4806c6bad5d35a8daabf894feeab (diff)
[FIX] web: many2many field handle "no_create" option
Diffstat (limited to 'addons/web/static/src/xml')
-rw-r--r--addons/web/static/src/xml/base.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 10840087acc..3fc40128cf6 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -1402,8 +1402,9 @@
<t t-if="! widget.options.disable_multiple_selection">
<button type="button" class="oe_button oe_selectcreatepopup-search-select oe_highlight" disabled="disabled">Select</button>
</t>
+ <t t-if="!widget.options.no_create">
<button type="button" class="oe_button oe_selectcreatepopup-search-create">Create</button>
- or <a class="oe_button oe_selectcreatepopup-search-close oe_bold oe_form_button_cancel" href="javascript:void(0)">Cancel</a>
+ or </t><a class="oe_button oe_selectcreatepopup-search-close oe_bold oe_form_button_cancel" href="javascript:void(0)">Cancel</a>
</t>
<t t-name="AbstractFormPopup.buttons">
<t t-if="! readonly">