Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ exclude: |
(LICENSE.*|COPYING.*)
default_language_version:
python: python3
node: "16.17.0"
node: system
repos:
- repo: local
hooks:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ addon | version | maintainers | summary
[mail_disable_follower_notification](mail_disable_follower_notification/) | 17.0.1.0.0 | | Don't send emails by default when adding followers to records
[mail_forward](mail_forward/) | 17.0.2.0.1 | <a href='https://github.com/carlos-lopez-tecnativa'><img src='https://github.com/carlos-lopez-tecnativa.png' width='32' height='32' style='border-radius:50%;' alt='carlos-lopez-tecnativa'/></a> | Forward messages from the chatter of any document to other users.
[mail_gateway](mail_gateway/) | 17.0.1.0.6 | | Base module for gateway communications
[mail_gateway_whatsapp](mail_gateway_whatsapp/) | 17.0.1.1.1 | | Set a gateway for whatsapp
[mail_gateway_whatsapp](mail_gateway_whatsapp/) | 17.0.1.1.2 | | Set a gateway for whatsapp
[mail_history_mark_unread](mail_history_mark_unread/) | 17.0.1.0.0 | | Add 'Mark as Unread' action to messages in History mailbox
[mail_layout_force](mail_layout_force/) | 17.0.1.0.1 | <a href='https://github.com/ivantodorovich'><img src='https://github.com/ivantodorovich.png' width='32' height='32' style='border-radius:50%;' alt='ivantodorovich'/></a> | Force a mail layout on selected email templates
[mail_layout_preview](mail_layout_preview/) | 17.0.1.0.0 | | Preview email templates in the browser
Expand Down
93 changes: 93 additions & 0 deletions mail_discuss_channel_unread_sort/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
================================
Mail Discuss Channel Unread Sort
================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:4ceee16d504b1603b1d386daa1eee6a3805fe04e626ab93e84641a058883ac78
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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%2Fsocial-lightgray.png?logo=github
:target: https://github.com/OCA/social/tree/17.0/mail_discuss_channel_unread_sort
:alt: OCA/social
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/social-17-0/social-17-0-mail_discuss_channel_unread_sort
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/social&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module changes the ordering of channels in the Discuss sidebar.

Unread channels are placed before read channels. Inside the unread
group, channels are ordered by most recent activity so the latest
channel with new messages is shown first.

Read channels keep the standard alphabetical ordering from Odoo.

**Table of contents**

.. contents::
:local:

Usage
=====

Install the module and open Discuss.

When a channel receives unread messages, it moves to the top of the
Channels section. If several channels are unread, the most recently
updated one is shown first.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/social/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/social/issues/new?body=module:%20mail_discuss_channel_unread_sort%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
-------

* APSL-Nagarro

Contributors
------------

- `APSL Nagarro <https://nagarro.com>`__

- Miquel Alzanillas

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/social <https://github.com/OCA/social/tree/17.0/mail_discuss_channel_unread_sort>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions mail_discuss_channel_unread_sort/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
18 changes: 18 additions & 0 deletions mail_discuss_channel_unread_sort/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Mail Discuss Channel Unread Sort",
"summary": "Sort discuss channels by most recent unread activity",
"version": "17.0.1.0.0",
"category": "Discuss",
"author": "APSL-Nagarro, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/social",
"license": "AGPL-3",
"depends": ["mail"],
"assets": {
"web.assets_backend": [
"mail_discuss_channel_unread_sort/static/src/js/discuss_app_category_model_patch.esm.js",
],
},
"installable": True,
}
3 changes: 3 additions & 0 deletions mail_discuss_channel_unread_sort/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
2 changes: 2 additions & 0 deletions mail_discuss_channel_unread_sort/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- [APSL Nagarro](https://nagarro.com)
- Miquel Alzanillas
7 changes: 7 additions & 0 deletions mail_discuss_channel_unread_sort/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
This module changes the ordering of channels in the Discuss sidebar.

Unread channels are placed before read channels. Inside the unread group,
channels are ordered by most recent activity so the latest channel with new
messages is shown first.

Read channels keep the standard alphabetical ordering from Odoo.
5 changes: 5 additions & 0 deletions mail_discuss_channel_unread_sort/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Install the module and open Discuss.

When a channel receives unread messages, it moves to the top of the Channels
section. If several channels are unread, the most recently updated one is shown
first.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading