diff --git a/web_searchbar_full_width/README.rst b/web_searchbar_full_width/README.rst new file mode 100644 index 00000000..82e42e45 --- /dev/null +++ b/web_searchbar_full_width/README.rst @@ -0,0 +1,98 @@ +==================== +Full width searchbar +==================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github + :target: https://github.com/OCA/web/tree/12.0/web_searchbar_full_width + :alt: OCA/web +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/web-12-0/web-12-0-web_searchbar_full_width + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/162/12.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +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:: https://raw.githubusercontent.com/web_searchbar_full_width/static/description/preview.png + :alt: Searchbar over full screen width + + +**Table of contents** + +.. contents:: + :local: + +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/12.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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Therp BV +* Siddharth Bhalgami + +Contributors +~~~~~~~~~~~~ + +* Holger Brunn +* Siddharth Bhalgami +* Ruchir Shukla +* Krushndevsinh Jadeja + +Do not contact contributors directly about support or help with technical issues. + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +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. + +This module is part of the `OCA/web `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. 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..9f19a51c --- /dev/null +++ b/web_searchbar_full_width/__manifest__.py @@ -0,0 +1,21 @@ +# Copyright 2015 Therp BV . +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Full width searchbar", + "version": "12.0.1.0.0", + "author": "Therp BV, " + "Odoo Community Association (OCA), " + "Siddharth Bhalgami", + 'website': "http://github.com/OCA/web", + "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/i18n/web_searchbar_full_width.pot b/web_searchbar_full_width/i18n/web_searchbar_full_width.pot new file mode 100644 index 00000000..f0e3a9e4 --- /dev/null +++ b/web_searchbar_full_width/i18n/web_searchbar_full_width.pot @@ -0,0 +1,16 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-03-16 07:29+0000\n" +"PO-Revision-Date: 2019-03-16 07:29+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + diff --git a/web_searchbar_full_width/readme/CONTRIBUTORS.rst b/web_searchbar_full_width/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000..aa39534d --- /dev/null +++ b/web_searchbar_full_width/readme/CONTRIBUTORS.rst @@ -0,0 +1,6 @@ +* Holger Brunn +* Siddharth Bhalgami +* Ruchir Shukla +* Krushndevsinh Jadeja + +Do not contact contributors directly about support or help with technical issues. diff --git a/web_searchbar_full_width/readme/DESCRIPTION.rst b/web_searchbar_full_width/readme/DESCRIPTION.rst new file mode 100644 index 00000000..1f674610 --- /dev/null +++ b/web_searchbar_full_width/readme/DESCRIPTION.rst @@ -0,0 +1,12 @@ +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 + diff --git a/web_searchbar_full_width/readme/USAGE.rst b/web_searchbar_full_width/readme/USAGE.rst new file mode 100644 index 00000000..5a6bea83 --- /dev/null +++ b/web_searchbar_full_width/readme/USAGE.rst @@ -0,0 +1,4 @@ +.. 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/12.0 + 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/index.html b/web_searchbar_full_width/static/description/index.html new file mode 100644 index 00000000..620ce272 --- /dev/null +++ b/web_searchbar_full_width/static/description/index.html @@ -0,0 +1,436 @@ + + + + + + +Full width searchbar + + + + + + 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/scss/web_searchbar_full_width.scss b/web_searchbar_full_width/static/src/scss/web_searchbar_full_width.scss new file mode 100644 index 00000000..963ff74f --- /dev/null +++ b/web_searchbar_full_width/static/src/scss/web_searchbar_full_width.scss @@ -0,0 +1,18 @@ +.o_control_panel { + .breadcrumb { + width: 100%; + margin-bottom: 5px; + } + + .o_cp_searchview { + width: 100%; + } + + .o_cp_left { + width: 45%; + } + + .o_cp_right { + width: 55%; + } +} \ No newline at end of file diff --git a/web_searchbar_full_width/views/templates.xml b/web_searchbar_full_width/views/templates.xml new file mode 100644 index 00000000..fdd829b8 --- /dev/null +++ b/web_searchbar_full_width/views/templates.xml @@ -0,0 +1,8 @@ + + + +