Adapt to v9 API.

- Use the new domain widget.
- Use modules system.
This commit is contained in:
Jairo Llopis
2017-02-16 11:36:04 +01:00
committed by Ivàn Todorovich
parent e5c142d429
commit 524264a54b
6 changed files with 163 additions and 192 deletions

View File

@@ -1,12 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2017 Jairo Llopis <jairo.llopis@tecnativa.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<templates>
<t t-name="web_advanced_search_x2x.extended_search.proposition.many2one">
<t t-if="!widget.show_searchfield()">
<t t-name="web_advanced_search_x2x.proposition">
<t t-if="widget.relational">
<!-- This wrapper fixes CSS styiling -->
<div class="oe_form"/>
</t>
<t t-if="!widget.relational">
<t t-call="SearchView.extended_search.proposition.char" />
</t>
<t t-if="widget.show_domain_selection()">
<span class="web_advanced_search_x2x_domain" /><button class="web_advanced_search_x2x_search" type="button">Search</button>
</t>
<span />
</t>
</templates>