Browse Source
[REF][web_advanced_search_x2x] Adapt to v9 API.
[REF][web_advanced_search_x2x] Adapt to v9 API.
- Use the new domain widget. - Use modules system.pull/555/head
Jairo Llopis
8 years ago
6 changed files with 161 additions and 190 deletions
-
16web_advanced_search_x2x/README.rst
-
1web_advanced_search_x2x/__openerp__.py
-
36web_advanced_search_x2x/static/src/css/web_advanced_search_x2x.css
-
279web_advanced_search_x2x/static/src/js/web_advanced_search_x2x.js
-
14web_advanced_search_x2x/static/src/xml/web_advanced_search_x2x.xml
-
3web_advanced_search_x2x/views/templates.xml
@ -1,36 +0,0 @@ |
|||||
.openerp .searchview_extended_prop_value .oe_form_field_with_button |
|
||||
{ |
|
||||
position: relative; |
|
||||
} |
|
||||
.openerp .oe_searchview_drawer .web_advanced_search_x2x_domain |
|
||||
{ |
|
||||
max-width: 20em; |
|
||||
overflow: hidden; |
|
||||
text-overflow: ellipsis; |
|
||||
display: inline-block; |
|
||||
} |
|
||||
/* copy search view's button style */ |
|
||||
.openerp .oe_searchview_drawer .web_advanced_search_x2x_search:before |
|
||||
{ |
|
||||
font: 21px "mnmliconsRegular"; |
|
||||
content: "r"; |
|
||||
color: #a3a3a3; |
|
||||
margin-left: 5px; |
|
||||
} |
|
||||
.openerp .oe_searchview_drawer .web_advanced_search_x2x_search |
|
||||
{ |
|
||||
font-size: 1px; |
|
||||
letter-spacing: -1px; |
|
||||
color: transparent; |
|
||||
text-shadow: none; |
|
||||
font-weight: normal; |
|
||||
-moz-box-shadow: none; |
|
||||
-webkit-box-shadow: none; |
|
||||
box-shadow: none; |
|
||||
-moz-border-radius: 0; |
|
||||
-webkit-border-radius: 0; |
|
||||
border-radius: 0; |
|
||||
padding: 0; |
|
||||
border: none; |
|
||||
background: transparent; |
|
||||
} |
|
@ -1,12 +1,14 @@ |
|||||
<?xml version="1.0" encoding="UTF-8"?> |
<?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> |
<templates> |
||||
<t t-name="web_advanced_search_x2x.extended_search.proposition.many2one"> |
|
||||
<t t-if="!widget.show_searchfield()"> |
|
||||
<t t-call="SearchView.extended_search.proposition.char" /> |
|
||||
|
<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 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 t-if="!widget.relational"> |
||||
|
<t t-call="SearchView.extended_search.proposition.char" /> |
||||
</t> |
</t> |
||||
<span /> |
|
||||
</t> |
</t> |
||||
</templates> |
</templates> |
@ -1,10 +1,11 @@ |
|||||
<?xml version="1.0" encoding="UTF-8"?> |
<?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). --> |
||||
<odoo> |
<odoo> |
||||
|
|
||||
<template id="assets_backend" name="web_advanced_search_x2x assets" inherit_id="web.assets_backend"> |
<template id="assets_backend" name="web_advanced_search_x2x assets" inherit_id="web.assets_backend"> |
||||
<xpath expr="." position="inside"> |
<xpath expr="." position="inside"> |
||||
<script type="text/javascript" src="/web_advanced_search_x2x/static/src/js/web_advanced_search_x2x.js"></script> |
<script type="text/javascript" src="/web_advanced_search_x2x/static/src/js/web_advanced_search_x2x.js"></script> |
||||
<link rel="stylesheet" href="/web_advanced_search_x2x/static/src/css/web_advanced_search_x2x.css"/> |
|
||||
</xpath> |
</xpath> |
||||
</template> |
</template> |
||||
|
|
||||
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue