Browse Source

Merge pull request #799 from Domatix/11.0-mig-web_searchbar_full_width

[11.0][MIG] web_searchbar_full_width
pull/899/head
Pedro M. Baeza 6 years ago
committed by GitHub
parent
commit
bbed7bd9a3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 61
      web_searchbar_full_width/README.rst
  2. 1
      web_searchbar_full_width/__init__.py
  3. 20
      web_searchbar_full_width/__manifest__.py
  4. BIN
      web_searchbar_full_width/static/description/icon.png
  5. BIN
      web_searchbar_full_width/static/description/preview.png
  6. 16
      web_searchbar_full_width/static/src/css/web_searchbar_full_width.css
  7. 8
      web_searchbar_full_width/views/templates.xml

61
web_searchbar_full_width/README.rst

@ -0,0 +1,61 @@
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: https://www.gnu.org/licenses/agpl
:alt: License: AGPL-3
==============================
Show searchbar over full width
==============================
Odoo's default search bar is rather narrow, which causes it to grow vertically
when applying a lot of filters. For small screens this can be a problem as it
wastes a lot of space. This addon addresses this issue by growing the search
bar to the whole width of the screen, moving it below the breadcrumb. A side
effect of this is that the breadcrumb can also use the full screen width, which
makes it reasonable not to cut off titles after 7 characters.
The result looks like this:
.. image:: /web_searchbar_full_width/static/description/preview.png
:alt: Searchbar over full screen width
Usage
=====
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/162/11.0
Bug Tracker
===========
Bugs are tracked on `GitHub Issues
<https://github.com/OCA/web/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smashing it by providing a detailed and welcomed feedback.
Credits
=======
Contributors
------------
* Holger Brunn <hbrunn@therp.nl>
* Siddharth Bhalgami <siddharth.bhalgami@gmail.com>
Do not contact contributors directly about support or help with technical issues.
Maintainer
----------
.. image:: http://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: http://odoo-community.org
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
To contribute to this module, please visit http://odoo-community.org.

1
web_searchbar_full_width/__init__.py

@ -0,0 +1 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

20
web_searchbar_full_width/__manifest__.py

@ -0,0 +1,20 @@
# Copyright 2015 Therp BV <http://therp.nl>.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
{
"name": "Full width searchbar",
"version": "11.0.1.0.0",
"author": "Therp BV, "
"Odoo Community Association (OCA), "
"Siddharth Bhalgami",
"license": "AGPL-3",
"category": "Tools",
"summary": "Show search bar in full screen width",
"depends": [
'web',
],
"data": [
'views/templates.xml',
],
'installable': True,
}

BIN
web_searchbar_full_width/static/description/icon.png

After

Width: 128  |  Height: 110  |  Size: 5.1 KiB

BIN
web_searchbar_full_width/static/description/preview.png

After

Width: 1312  |  Height: 406  |  Size: 44 KiB

16
web_searchbar_full_width/static/src/css/web_searchbar_full_width.css

@ -0,0 +1,16 @@
.o_control_panel .breadcrumb {
width: 100%;
margin-bottom: 5px;
}
.o_control_panel .o_cp_searchview {
width: 100%;
}
.o_control_panel .o_cp_left {
width: 45%;
}
.o_control_panel .o_cp_right {
width: 55%;
}

8
web_searchbar_full_width/views/templates.xml

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<template id="assets_backend" name="web_searchbar_full_width assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<link rel="stylesheet" href="/web_searchbar_full_width/static/src/css/web_searchbar_full_width.css"/>
</xpath>
</template>
</odoo>
Loading…
Cancel
Save