From 9eefaf9f06a2df7a8ea8d5174e4b7bfc38cf5b2e Mon Sep 17 00:00:00 2001 From: Krushndevsinh Jadeja Date: Sat, 16 Mar 2019 15:11:41 +0530 Subject: [PATCH] [MIG][ADD][IMP] web_searchbar_full_width: migrated module to odoo v12 --- web_searchbar_full_width/README.rst | 79 +++- web_searchbar_full_width/__manifest__.py | 5 +- .../i18n/web_searchbar_full_width.pot | 4 +- .../readme/CONTRIBUTORS.rst | 6 + .../readme/DESCRIPTION.rst | 12 + web_searchbar_full_width/readme/USAGE.rst | 4 + .../static/description/index.html | 436 ++++++++++++++++++ .../src/css/web_searchbar_full_width.css | 16 - .../src/scss/web_searchbar_full_width.scss | 18 + web_searchbar_full_width/views/templates.xml | 2 +- 10 files changed, 541 insertions(+), 41 deletions(-) create mode 100644 web_searchbar_full_width/readme/CONTRIBUTORS.rst create mode 100644 web_searchbar_full_width/readme/DESCRIPTION.rst create mode 100644 web_searchbar_full_width/readme/USAGE.rst create mode 100644 web_searchbar_full_width/static/description/index.html delete mode 100644 web_searchbar_full_width/static/src/css/web_searchbar_full_width.css create mode 100644 web_searchbar_full_width/static/src/scss/web_searchbar_full_width.scss diff --git a/web_searchbar_full_width/README.rst b/web_searchbar_full_width/README.rst index 0967bd73..82e42e45 100644 --- a/web_searchbar_full_width/README.rst +++ b/web_searchbar_full_width/README.rst @@ -1,10 +1,29 @@ -.. 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 -============================== +==================== +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 @@ -15,47 +34,65 @@ 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 +.. 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/11.0 + :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. +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. -Maintainer ----------- - -.. image:: http://odoo-community.org/logo.png - :alt: Odoo Community Association - :target: http://odoo-community.org +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. -To contribute to this module, please visit http://odoo-community.org. +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/__manifest__.py b/web_searchbar_full_width/__manifest__.py index 5a22a415..9f19a51c 100644 --- a/web_searchbar_full_width/__manifest__.py +++ b/web_searchbar_full_width/__manifest__.py @@ -1,12 +1,13 @@ # Copyright 2015 Therp BV . -# License AGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Full width searchbar", - "version": "11.0.1.0.0", + "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", diff --git a/web_searchbar_full_width/i18n/web_searchbar_full_width.pot b/web_searchbar_full_width/i18n/web_searchbar_full_width.pot index 447d3bb3..f0e3a9e4 100644 --- a/web_searchbar_full_width/i18n/web_searchbar_full_width.pot +++ b/web_searchbar_full_width/i18n/web_searchbar_full_width.pot @@ -3,8 +3,10 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 11.0\n" +"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" 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/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/src/css/web_searchbar_full_width.css b/web_searchbar_full_width/static/src/css/web_searchbar_full_width.css deleted file mode 100644 index b65b9928..00000000 --- a/web_searchbar_full_width/static/src/css/web_searchbar_full_width.css +++ /dev/null @@ -1,16 +0,0 @@ -.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/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 index bf7c0f35..fdd829b8 100644 --- a/web_searchbar_full_width/views/templates.xml +++ b/web_searchbar_full_width/views/templates.xml @@ -2,7 +2,7 @@