Browse Source
Merge pull request #555 from Tecnativa/9.0-web_advanced_search_x2x-mig
Merge pull request #555 from Tecnativa/9.0-web_advanced_search_x2x-mig
[9.0][MIG] web_advanced_search_x2x modulepull/592/head
Holger Brunn
8 years ago
committed by
GitHub
8 changed files with 235 additions and 343 deletions
-
38web_advanced_search_x2x/README.rst
-
21web_advanced_search_x2x/__init__.py
-
33web_advanced_search_x2x/__openerp__.py
-
36web_advanced_search_x2x/static/src/css/web_advanced_search_x2x.css
-
16web_advanced_search_x2x/static/src/css/web_advanced_search_x2x.less
-
398web_advanced_search_x2x/static/src/js/web_advanced_search_x2x.js
-
14web_advanced_search_x2x/static/src/xml/web_advanced_search_x2x.xml
-
22web_advanced_search_x2x/views/templates.xml
@ -1,20 +1,3 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################## |
|||
# |
|||
# OpenERP, Open Source Management Solution |
|||
# This module copyright (C) 2015 Therp BV <http://therp.nl>. |
|||
# |
|||
# This program is free software: you can redistribute it and/or modify |
|||
# it under the terms of the GNU Affero General Public License as |
|||
# published by the Free Software Foundation, either version 3 of the |
|||
# License, or (at your option) any later version. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU Affero General Public License for more details. |
|||
# |
|||
# You should have received a copy of the GNU Affero General Public License |
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################## |
|||
# Copyright 2015 Therp BV <http://therp.nl> |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
@ -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; |
|||
} |
@ -0,0 +1,16 @@ |
|||
.openerp { |
|||
.oe-search-options { |
|||
.searchview_extended_prop_value { |
|||
.oe_form { |
|||
.ui-autocomplete-input { |
|||
.form-control(); |
|||
} |
|||
|
|||
.oe_m2o_drop_down_button { |
|||
top: 6px; |
|||
right: 2px; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
@ -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-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-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> |
|||
<span /> |
|||
</t> |
|||
</templates> |
@ -1,11 +1,13 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<openerp> |
|||
<data> |
|||
<template id="assets_backend" name="web_advanced_search_x2x assets" inherit_id="web.assets_backend"> |
|||
<xpath expr="." position="inside"> |
|||
<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> |
|||
</template> |
|||
</data> |
|||
</openerp> |
|||
<!-- Copyright 2017 Jairo Llopis <jairo.llopis@tecnativa.com> |
|||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> |
|||
<odoo> |
|||
|
|||
<template id="assets_backend" name="web_advanced_search_x2x assets" inherit_id="web.assets_backend"> |
|||
<xpath expr="." position="inside"> |
|||
<link rel="stylesheet" href="/web_advanced_search_x2x/static/src/css/web_advanced_search_x2x.less"/> |
|||
<script type="text/javascript" src="/web_advanced_search_x2x/static/src/js/web_advanced_search_x2x.js"/> |
|||
</xpath> |
|||
</template> |
|||
|
|||
</odoo> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue