Skip to content
Snippets Groups Projects
Unverified Commit f558c049 authored by Xudong Yang's avatar Xudong Yang Committed by Martin Trigaux
Browse files

[FIX] base_import: t-if does not work with t-jquery

Not evaluated, move the condition to the button
Closes #12230
parent f94f570b
No related branches found
No related tags found
No related merge requests found
......@@ -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>
......
China, 2016-04-29
I hereby agree to the terms of the Odoo Individual Contributor License
Agreement v1.0.
I declare that I am authorized and able to make this agreement and sign this
declaration.
Signed,
Xudong Yang fanderous@gmail.com https://github.com/Wizr
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment