diff --git a/web_group_expand/README.rst b/web_group_expand/README.rst index 8d62c37c6..e9fd1f871 100644 --- a/web_group_expand/README.rst +++ b/web_group_expand/README.rst @@ -14,13 +14,13 @@ Group Expand Buttons :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/13.0/web_group_expand + :target: https://github.com/OCA/web/tree/14.0/web_group_expand :alt: OCA/web .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/web-13-0/web-13-0-web_group_expand + :target: https://translation.odoo-community.org/projects/web-14-0/web-14-0-web_group_expand :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/13.0 + :target: https://runbot.odoo-community.org/runbot/162/14.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -43,7 +43,7 @@ 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -68,6 +68,7 @@ Contributors * Jay Vora (SerpentCS) for their alternative implementation * Jan Verbeek * Manuel Calero +* Alvaro Estebanez (brain-tec AG) Maintainers ~~~~~~~~~~~ @@ -82,6 +83,6 @@ 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. +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_group_expand/__manifest__.py b/web_group_expand/__manifest__.py index 20d2f1fab..8d12ab643 100644 --- a/web_group_expand/__manifest__.py +++ b/web_group_expand/__manifest__.py @@ -1,7 +1,7 @@ { "name": "Group Expand Buttons", "category": "Web", - "version": "13.0.1.0.0", + "version": "14.0.1.0.0", "license": "AGPL-3", "author": "OpenERP SA, " "AvanzOSC, " @@ -9,6 +9,7 @@ "Therp BV, " "Xtendoo, " "Odoo Community Association (OCA)", + "website": "https://github.com/OCA/web", "depends": ["web"], "qweb": ["static/src/xml/expand_buttons.xml"], "data": ["views/templates.xml"], diff --git a/web_group_expand/i18n/ca.po b/web_group_expand/i18n/ca.po index 53747f55c..6b9694b3c 100644 --- a/web_group_expand/i18n/ca.po +++ b/web_group_expand/i18n/ca.po @@ -1,10 +1,10 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * web_group_expand +# * web_group_expand # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 12.0\n" +"Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" "PO-Revision-Date: 2021-02-17 10:45+0000\n" "Last-Translator: claudiagn \n" @@ -18,14 +18,14 @@ msgstr "" #. module: web_group_expand #. openerp-web -#: code:addons/web_group_expand/static/src/xml/expand_buttons.xml:12 +#: code:addons/web_group_expand/static/src/xml/expand_buttons.xml:0 #, python-format msgid "Collapse groups" msgstr "Col·lapsar grups" #. module: web_group_expand #. openerp-web -#: code:addons/web_group_expand/static/src/xml/expand_buttons.xml:8 +#: code:addons/web_group_expand/static/src/xml/expand_buttons.xml:0 #, python-format msgid "Expand groups" msgstr "Expandir grups" diff --git a/web_group_expand/i18n/es.po b/web_group_expand/i18n/es.po index ba94af093..d8a65f3d4 100644 --- a/web_group_expand/i18n/es.po +++ b/web_group_expand/i18n/es.po @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 12.0\n" +"Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" "PO-Revision-Date: 2020-09-16 14:00+0000\n" "Last-Translator: claudiagn \n" diff --git a/web_group_expand/i18n/nl.po b/web_group_expand/i18n/nl.po index 6ed84a394..6c919760b 100644 --- a/web_group_expand/i18n/nl.po +++ b/web_group_expand/i18n/nl.po @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 12.0\n" +"Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2020-04-20 10:58+0000\n" "PO-Revision-Date: 2020-04-20 12:59+0200\n" diff --git a/web_group_expand/i18n/pt_BR.po b/web_group_expand/i18n/pt_BR.po index d87988adf..7d5bed5a2 100644 --- a/web_group_expand/i18n/pt_BR.po +++ b/web_group_expand/i18n/pt_BR.po @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 12.0\n" +"Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" "PO-Revision-Date: 2021-03-15 06:45+0000\n" "Last-Translator: Marcel Savegnago \n" diff --git a/web_group_expand/i18n/web_group_expand.pot b/web_group_expand/i18n/web_group_expand.pot index 6cf544f80..de8f11934 100644 --- a/web_group_expand/i18n/web_group_expand.pot +++ b/web_group_expand/i18n/web_group_expand.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 13.0\n" +"Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" diff --git a/web_group_expand/readme/CONTRIBUTORS.rst b/web_group_expand/readme/CONTRIBUTORS.rst index 316d64c63..3675a6e32 100644 --- a/web_group_expand/readme/CONTRIBUTORS.rst +++ b/web_group_expand/readme/CONTRIBUTORS.rst @@ -4,3 +4,4 @@ * Jay Vora (SerpentCS) for their alternative implementation * Jan Verbeek * Manuel Calero +* Alvaro Estebanez (brain-tec AG) diff --git a/web_group_expand/static/description/index.html b/web_group_expand/static/description/index.html index e670877cd..785f7be45 100644 --- a/web_group_expand/static/description/index.html +++ b/web_group_expand/static/description/index.html @@ -367,7 +367,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/web Translate me on Weblate Try me on Runbot

+

Beta License: AGPL-3 OCA/web Translate me on Weblate Try me on Runbot

When grouping a list by a field, this module adds two buttons to expand or collapse all the groups at once.

The buttons appear in the top right, in place of the pagination.

@@ -389,7 +389,7 @@ collapse all the groups at once.

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.

+feedback.

Do not contact contributors directly about support or help with technical issues.

@@ -413,6 +413,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
  • Jay Vora (SerpentCS) for their alternative implementation
  • Jan Verbeek <jverbeek@therp.nl>
  • Manuel Calero <manuelcalerosolis@gmail.com>
  • +
  • Alvaro Estebanez (brain-tec AG) <alvaro.estebanez@bt-group.com>
  • @@ -422,7 +423,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome

    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.

    +

    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_group_expand/static/src/js/web_group_expand.js b/web_group_expand/static/src/js/web_group_expand.js index d2de1768e..cc30f75ce 100644 --- a/web_group_expand/static/src/js/web_group_expand.js +++ b/web_group_expand/static/src/js/web_group_expand.js @@ -1,10 +1,10 @@ -odoo.define("web.web_group_expand", function(require) { +odoo.define("web.web_group_expand", function (require) { "use strict"; var qweb = require("web.core").qweb; require("web.ListController").include({ - start: function() { + start: function () { this.$expandGroupButtons = $(qweb.render("web_group_expand.Buttons")); this.$expandGroupButtons .find("#oe_group_by_expand") @@ -15,18 +15,18 @@ odoo.define("web.web_group_expand", function(require) { return this._super.apply(this, arguments); }, - renderPager: function($node) { + renderButtons: function () { this._super.apply(this, arguments); this.$expandGroupButtons.toggleClass("o_hidden", !this.renderer.isGrouped); - $node.append(this.$expandGroupButtons); + this.$buttons.append(this.$expandGroupButtons); }, - expandAllGroups: function() { + expandAllGroups: function () { // We expand layer by layer. So first we need to find the highest // layer that's not already fully expanded. var layer = this.renderer.state.data; while (layer.length) { - var closed = layer.filter(function(group) { + var closed = layer.filter(function (group) { return !group.isOpen; }); if (closed.length) { @@ -36,7 +36,7 @@ odoo.define("web.web_group_expand", function(require) { } // This layer is completely expanded, move to the next layer = _.flatten( - layer.map(function(group) { + layer.map(function (group) { return group.data; }), true @@ -44,19 +44,19 @@ odoo.define("web.web_group_expand", function(require) { } }, - collapseAllGroups: function() { + collapseAllGroups: function () { // We collapse layer by layer. So first we need to find the deepest // layer that's not already fully collapsed. - var layer = this.renderer.state.data.filter(function(group) { + var layer = this.renderer.state.data.filter(function (group) { return group.isOpen; }); while (layer.length) { var next = _.flatten( - layer.map(function(group) { + layer.map(function (group) { return group.data; }), true - ).filter(function(group) { + ).filter(function (group) { return group.isOpen; }); if (!next.length) { @@ -68,9 +68,9 @@ odoo.define("web.web_group_expand", function(require) { } }, - _toggleGroups: function(groups) { + _toggleGroups: function (groups) { var self = this; - var defs = groups.map(function(group) { + var defs = groups.map(function (group) { return self.model.toggleGroup(group.id); }); $.when(...defs).then( @@ -80,7 +80,7 @@ odoo.define("web.web_group_expand", function(require) { }); require("web.ListRenderer").include({ - updateState: function() { + updateState: function () { var res = this._super.apply(this, arguments); $("nav.oe_group_by_expand_buttons").toggleClass( "o_hidden",