diff --git a/web_searchbar_full_width/README.rst b/web_searchbar_full_width/README.rst new file mode 100644 index 00000000..0967bd73 --- /dev/null +++ b/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 +`_. 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 +* Siddharth Bhalgami + +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. diff --git a/web_searchbar_full_width/__init__.py b/web_searchbar_full_width/__init__.py new file mode 100644 index 00000000..5986cee6 --- /dev/null +++ b/web_searchbar_full_width/__init__.py @@ -0,0 +1 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). diff --git a/web_searchbar_full_width/__manifest__.py b/web_searchbar_full_width/__manifest__.py new file mode 100644 index 00000000..5a22a415 --- /dev/null +++ b/web_searchbar_full_width/__manifest__.py @@ -0,0 +1,20 @@ +# Copyright 2015 Therp BV . +# 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, +} diff --git a/web_searchbar_full_width/static/description/icon.png b/web_searchbar_full_width/static/description/icon.png new file mode 100644 index 00000000..ebb97429 Binary files /dev/null and b/web_searchbar_full_width/static/description/icon.png differ diff --git a/web_searchbar_full_width/static/description/preview.png b/web_searchbar_full_width/static/description/preview.png new file mode 100644 index 00000000..d6a58aa4 Binary files /dev/null and b/web_searchbar_full_width/static/description/preview.png differ diff --git a/web_searchbar_full_width/static/src/css/web_searchbar_full_width.css b/web_searchbar_full_width/static/src/css/web_searchbar_full_width.css new file mode 100644 index 00000000..b65b9928 --- /dev/null +++ b/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%; +} diff --git a/web_searchbar_full_width/views/templates.xml b/web_searchbar_full_width/views/templates.xml new file mode 100644 index 00000000..bf7c0f35 --- /dev/null +++ b/web_searchbar_full_width/views/templates.xml @@ -0,0 +1,8 @@ + + + +