From 599e4e56dfc08581d59c3d96d2de116fab9eb643 Mon Sep 17 00:00:00 2001 From: Carlos Lopez Date: Thu, 14 Nov 2024 13:27:21 +0100 Subject: [PATCH] [18.0-mig-mail] [MIG] mail_activity_board: Migration to 18.0 [18.0-mig-mail] [MIG] mail_activity_board: Migration to 18.0 [18.0-mig-mail] [MIG] mail_activity_board: Migration to 18.0 [18.0-mig-mail] [MIG] mail_activity_board: Migration to 18.0 [18.0-mig-mail] [MIG] mail_activity_board: Migration to 18.0 [18.0-mig-mail] [MIG] mail_activity_board: Migration to 18.0 [18.0-mig-mail] [MIG] mail_activity_board: Migration to 18.0 --- mail_activity_board/README.rst | 10 +-- mail_activity_board/__manifest__.py | 4 +- mail_activity_board/models/mail_activity.py | 11 +-- .../static/description/index.html | 17 ++-- .../src/components/chatter/chatter.esm.js | 3 +- .../static/src/components/chatter/chatter.xml | 2 +- .../tests/test_mail_activity_board.py | 2 +- .../views/mail_activity_view.xml | 87 +++++++++---------- mail_notification_with_history/README.rst | 16 ++-- .../__manifest__.py | 2 +- .../static/description/index.html | 8 +- mail_thread_create_nolog/README.rst | 16 ++-- mail_thread_create_nolog/__manifest__.py | 2 +- .../static/description/index.html | 8 +- 14 files changed, 89 insertions(+), 99 deletions(-) diff --git a/mail_activity_board/README.rst b/mail_activity_board/README.rst index 922e7b8b..0a89ec1b 100644 --- a/mail_activity_board/README.rst +++ b/mail_activity_board/README.rst @@ -17,13 +17,13 @@ Mail Activity Board :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_activity_board + :target: https://github.com/OCA/social/tree/18.0/mail_activity_board :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_activity_board + :target: https://translation.odoo-community.org/projects/social-18-0/social-18-0-mail_activity_board :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 + :target: https://runboat.odoo-community.org/builds?repo=OCA/social&target_branch=18.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -56,7 +56,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 to smash it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -103,6 +103,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/social `_ project on GitHub. +This module is part of the `OCA/social `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/mail_activity_board/__manifest__.py b/mail_activity_board/__manifest__.py index ab4beede..c5f9705a 100644 --- a/mail_activity_board/__manifest__.py +++ b/mail_activity_board/__manifest__.py @@ -4,10 +4,10 @@ { "name": "Mail Activity Board", "summary": "Add Activity Boards", - "version": "17.0.1.0.1", + "version": "18.0.1.0.0", "development_status": "Beta", "category": "Social Network", - "website": "https://github.com/OCA/social", + "website": "https://github.com/OCA/mail", "author": "SDi, David Juaneda, Sodexis, ACSONE SA/NV," " Odoo Community Association (OCA)", "license": "AGPL-3", diff --git a/mail_activity_board/models/mail_activity.py b/mail_activity_board/models/mail_activity.py index 6ed172ad..fba9dc0e 100644 --- a/mail_activity_board/models/mail_activity.py +++ b/mail_activity_board/models/mail_activity.py @@ -22,6 +22,7 @@ class MailActivity(models.Model): compute="_compute_related_model_instance", string="Document", ) + user_avatar_128 = fields.Binary(related="user_id.avatar_128", readonly=True) @api.depends("res_id", "res_model") def _compute_related_model_instance(self): @@ -71,13 +72,3 @@ def _find_allowed_model_wise(self, doc_model, doc_dict): for allowed_doc_id in allowed_doc_ids for message_id in doc_dict[allowed_doc_id] } - - @api.model - def _find_allowed_doc_ids(self, model_ids): - ir_model_access_model = self.env["ir.model.access"] - allowed_ids = set() - for doc_model, doc_dict in model_ids.items(): - if not ir_model_access_model.check(doc_model, "read", False): - continue - allowed_ids |= self._find_allowed_model_wise(doc_model, doc_dict) - return allowed_ids diff --git a/mail_activity_board/static/description/index.html b/mail_activity_board/static/description/index.html index f097b28d..50b3e3c9 100644 --- a/mail_activity_board/static/description/index.html +++ b/mail_activity_board/static/description/index.html @@ -8,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -274,7 +275,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -300,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -368,7 +369,7 @@

Mail Activity Board

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:af48279823f61b13bb70f78b4a28fca06f358bed9d99c66d25c5a5d6ceac611f !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/social Translate me on Weblate Try me on Runboat

+

Beta License: AGPL-3 OCA/social Translate me on Weblate Try me on Runboat

This module adds an activity board with form, tree, kanban, calendar, pivot, graph and search views.

Table of contents

@@ -401,7 +402,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 to smash it by providing a detailed and welcomed -feedback.

+feedback.

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

@@ -439,11 +440,13 @@

Contributors

Maintainers

This module is maintained by the OCA.

-Odoo Community Association + +Odoo Community Association +

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 project on GitHub.

+

This module is part of the OCA/social project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

diff --git a/mail_activity_board/static/src/components/chatter/chatter.esm.js b/mail_activity_board/static/src/components/chatter/chatter.esm.js index cf151402..7f3f5259 100644 --- a/mail_activity_board/static/src/components/chatter/chatter.esm.js +++ b/mail_activity_board/static/src/components/chatter/chatter.esm.js @@ -1,5 +1,4 @@ -/** @odoo-module **/ -import {Chatter} from "@mail/core/web/chatter"; +import {Chatter} from "@mail/chatter/web_portal/chatter"; import {patch} from "@web/core/utils/patch"; patch(Chatter.prototype, { diff --git a/mail_activity_board/static/src/components/chatter/chatter.xml b/mail_activity_board/static/src/components/chatter/chatter.xml index 7aaf27eb..e1b06177 100644 --- a/mail_activity_board/static/src/components/chatter/chatter.xml +++ b/mail_activity_board/static/src/components/chatter/chatter.xml @@ -5,7 +5,7 @@ t-inherit="mail.Chatter" t-inherit-mode="extension" > - + @@ -91,7 +91,6 @@ invisible="not duration or not calendar_event_id" /> - - mail.activity.boards.view.tree mail.activity - + - - - mail.activity.boards.view.kanban - mail.activity - - + + mail.activity.boards.view.kanban + mail.activity + + - +
@@ -175,9 +172,9 @@
- + + +
@@ -187,10 +184,9 @@ t-value="new Date(record.date_deadline.raw_value)" /> - + + + @@ -207,10 +203,9 @@ - + + + @@ -224,13 +219,20 @@
- + + + + + + + +
@@ -239,10 +241,9 @@ - + - mail.activity.boards.view.search @@ -256,7 +257,7 @@ - + - - - @@ -302,7 +301,7 @@ name="view_ids" eval="[(5, 0, 0), (0, 0, {'view_mode': 'kanban', 'view_id': ref('mail_activity_view_kanban')}), - (0, 0, {'view_mode': 'tree', 'view_id': ref('mail_activity_view_tree')}), + (0, 0, {'view_mode': 'list', 'view_id': ref('mail_activity_view_tree')}), (0, 0, {'view_mode': 'form', 'view_id': ref('mail_activity_view_form_board')}), (0, 0, {'view_mode': 'calendar'}), (0, 0, {'view_mode': 'pivot'}), @@ -311,8 +310,7 @@ - - - diff --git a/mail_notification_with_history/README.rst b/mail_notification_with_history/README.rst index 434ef266..ba79f92a 100644 --- a/mail_notification_with_history/README.rst +++ b/mail_notification_with_history/README.rst @@ -16,14 +16,14 @@ Mail Notification With History .. |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/18.0/mail_notification_with_history - :alt: OCA/social +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmail-lightgray.png?logo=github + :target: https://github.com/OCA/mail/tree/18.0/mail_notification_with_history + :alt: OCA/mail .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/social-18-0/social-18-0-mail_notification_with_history + :target: https://translation.odoo-community.org/projects/mail-18-0/mail-18-0-mail_notification_with_history :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=18.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/mail&target_branch=18.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -49,10 +49,10 @@ like to activate it. Bug Tracker =========== -Bugs are tracked on `GitHub Issues `_. +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 to smash it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -99,6 +99,6 @@ Current `maintainer `__: |maintainer-TDu| -This module is part of the `OCA/social `_ project on GitHub. +This module is part of the `OCA/mail `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/mail_notification_with_history/__manifest__.py b/mail_notification_with_history/__manifest__.py index 208fd0d9..eef0d659 100644 --- a/mail_notification_with_history/__manifest__.py +++ b/mail_notification_with_history/__manifest__.py @@ -6,7 +6,7 @@ "summary": """Add the previous chatter discussion into new email notifications.""", "version": "18.0.1.0.0", "category": "Social Network", - "website": "https://github.com/OCA/social", + "website": "https://github.com/OCA/mail", "author": "Camptocamp, Odoo Community Association (OCA)", "license": "AGPL-3", "installable": True, diff --git a/mail_notification_with_history/static/description/index.html b/mail_notification_with_history/static/description/index.html index ccb2d93f..667a8f03 100644 --- a/mail_notification_with_history/static/description/index.html +++ b/mail_notification_with_history/static/description/index.html @@ -369,7 +369,7 @@

Mail Notification With History

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:758c6aa38b53fe83b11dd396bdd24dc7ed5e52fc91d34f93fb45709e899fc543 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/social Translate me on Weblate Try me on Runboat

+

Beta License: AGPL-3 OCA/mail Translate me on Weblate Try me on Runboat

Followers of a discussion in the chatter of Odoo can be informed by email of a new message being created. This module adds in that email the history of the chatter discussion to help the recipient with more @@ -397,10 +397,10 @@

Installation

Bug Tracker

-

Bugs are tracked on GitHub Issues. +

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 to smash it by providing a detailed and welcomed -feedback.

+feedback.

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

@@ -440,7 +440,7 @@

Maintainers

promote its widespread use.

Current maintainer:

TDu

-

This module is part of the OCA/social project on GitHub.

+

This module is part of the OCA/mail project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

diff --git a/mail_thread_create_nolog/README.rst b/mail_thread_create_nolog/README.rst index 1d1c7bbb..dede4b3d 100644 --- a/mail_thread_create_nolog/README.rst +++ b/mail_thread_create_nolog/README.rst @@ -16,14 +16,14 @@ Mail Thread - Fake create log .. |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/18.0/mail_thread_create_nolog - :alt: OCA/social +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmail-lightgray.png?logo=github + :target: https://github.com/OCA/mail/tree/18.0/mail_thread_create_nolog + :alt: OCA/mail .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/social-18-0/social-18-0-mail_thread_create_nolog + :target: https://translation.odoo-community.org/projects/mail-18-0/mail-18-0-mail_thread_create_nolog :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=18.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/mail&target_branch=18.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -53,10 +53,10 @@ Known issues / Roadmap Bug Tracker =========== -Bugs are tracked on `GitHub Issues `_. +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 to smash it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -104,6 +104,6 @@ Current `maintainer `__: |maintainer-sebalix| -This module is part of the `OCA/social `_ project on GitHub. +This module is part of the `OCA/mail `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/mail_thread_create_nolog/__manifest__.py b/mail_thread_create_nolog/__manifest__.py index 22205779..5de32685 100644 --- a/mail_thread_create_nolog/__manifest__.py +++ b/mail_thread_create_nolog/__manifest__.py @@ -5,7 +5,7 @@ "summary": "Display a fake (non-stored) create log in the chatter.", "version": "18.0.1.0.0", "category": "Mail", - "website": "https://github.com/OCA/social", + "website": "https://github.com/OCA/mail", "author": "Camptocamp, Odoo Community Association (OCA)", "maintainers": ["sebalix"], "development_status": "Alpha", diff --git a/mail_thread_create_nolog/static/description/index.html b/mail_thread_create_nolog/static/description/index.html index 774dcd75..8e79b358 100644 --- a/mail_thread_create_nolog/static/description/index.html +++ b/mail_thread_create_nolog/static/description/index.html @@ -369,7 +369,7 @@

Mail Thread - Fake create log

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:a76dedae420c3c636ef5042fcd7379e1f2c05a27e4392be737c007b081887ef5 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Alpha License: AGPL-3 OCA/social Translate me on Weblate Try me on Runboat

+

Alpha License: AGPL-3 OCA/mail Translate me on Weblate Try me on Runboat

This module will block the creation in the database of ‘Record created’ messages on data models inheriting from mail.thread, but will instead generate this message on the fly when Odoo displays the messages of a @@ -403,10 +403,10 @@

Known issues / Roadmap

Bug Tracker

-

Bugs are tracked on GitHub Issues. +

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 to smash it by providing a detailed and welcomed -feedback.

+feedback.

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

@@ -443,7 +443,7 @@

Maintainers

promote its widespread use.

Current maintainer:

sebalix

-

This module is part of the OCA/social project on GitHub.

+

This module is part of the OCA/mail project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.