summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml
diff options
context:
space:
mode:
authorJigar Amin - OpenERP <jam@tinyerp.com>2012-08-20 16:10:55 +0530
committerJigar Amin - OpenERP <jam@tinyerp.com>2012-08-20 16:10:55 +0530
commit0f364e1acd876183e5957db99e73d6869b684d08 (patch)
tree63a3306eda2f86482d0c3b1ebf2d163c79a6f784 /addons/web/static/src/xml
parent6ace7578faef57fd9bff7e2302c9a1475dc591da (diff)
[IMP] removed Import action if create = false
bzr revid: jam@tinyerp.com-20120820104055-mgw4y5csa31poa33
Diffstat (limited to 'addons/web/static/src/xml')
-rw-r--r--addons/web/static/src/xml/base.xml12
1 files changed, 5 insertions, 7 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 2d86b40f44f..61a1a834d0d 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -671,14 +671,12 @@
</tfoot>
</table>
<div t-name="ListView.buttons" class="oe_list_buttons">
- <t t-if="!widget.no_leaf and widget.options.action_buttons !== false and widget.options.addable">
- <t t-if="widget._is_action_enabled('create')">
- <button type="button" class="oe_button oe_list_add oe_highlight">
- <t t-esc="widget.options.addable"/>
- </button>
- </t>
+ <t t-if="!widget.no_leaf and widget.options.action_buttons !== false and widget.options.addable and widget._is_action_enabled('create')">
+ <button type="button" class="oe_button oe_list_add oe_highlight">
+ <t t-esc="widget.options.addable"/>
+ </button>
<span class="oe_alternative" t-if="widget.options.import_enabled">
- <span class="oe_fade" t-if="widget._is_action_enabled('create')">or</span> <a href="#" class="oe_bold oe_list_button_import">Import</a>
+ <span class="oe_fade">or</span> <a href="#" class="oe_bold oe_list_button_import">Import</a>
</span>
</t>
</div>