summaryrefslogtreecommitdiff
path: root/addons/base_import/static/src/xml
diff options
context:
space:
mode:
authorXudong Yang <fanderous@gmail.com>2016-05-31 11:37:14 +0800
committerMartin Trigaux <mat@odoo.com>2016-06-02 17:56:23 +0200
commitf558c049d03d822394b6edf844d8ab862cdb1115 (patch)
treeae4c2e3d888f18333162b6bd1374d9a0942c9bec /addons/base_import/static/src/xml
parentf94f570be683c10be3d20c937f4e3c50e6612396 (diff)
[FIX] base_import: t-if does not work with t-jquery
Not evaluated, move the condition to the button Closes #12230
Diffstat (limited to 'addons/base_import/static/src/xml')
-rw-r--r--addons/base_import/static/src/xml/import.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/base_import/static/src/xml/import.xml b/addons/base_import/static/src/xml/import.xml
index f173263e187..b67aba5c027 100644
--- a/addons/base_import/static/src/xml/import.xml
+++ b/addons/base_import/static/src/xml/import.xml
@@ -413,8 +413,8 @@
<t t-if="error.moreinfo" t-raw="info(error.moreinfo)"/>
</t>
<t t-extend="ListView.buttons">
- <t t-if='widget.options.import_enabled' t-jquery="button.o_list_button_add" t-operation="after">
- <button type="button" class="btn btn-sm btn-default o_list_button_import">
+ <t t-jquery="button.o_list_button_add" t-operation="after">
+ <button t-if='widget.options.import_enabled' type="button" class="btn btn-sm btn-default o_list_button_import">
Import
</button>
</t>