From fc9e67bc6b793682389a633f55fb2bde5f3ddd4b Mon Sep 17 00:00:00 2001 From: "Didier (did)" Date: Fri, 18 Mar 2022 17:47:25 +0000 Subject: [PATCH] [IMP] mail: move message unread counter to channel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The field could have been removed from thread since https://github.com/odoo/odoo/commit/88b8cd058713bfad2942f7e7434c34b6c1a6e7da task-2746109 closes odoo/odoo#83765 Related: odoo/upgrade#3222 Signed-off-by: Sébastien Theys (seb) --- addons/hr_expense/views/hr_expense_views.xml | 5 +- addons/mail/__manifest__.py | 2 +- addons/mail/models/mail_channel.py | 5 +- addons/mail/models/mail_channel_partner.py | 23 ++++++++ addons/mail/models/mail_message.py | 2 - addons/mail/models/mail_thread.py | 27 --------- .../tests/helpers/model_definitions_setup.js | 1 + .../mail/tests/test_mail_channel_partner.py | 55 +++++++++++++++++++ addons/purchase/views/purchase_views.xml | 10 +--- .../tests/test_performance.py | 2 +- 10 files changed, 87 insertions(+), 45 deletions(-) diff --git a/addons/hr_expense/views/hr_expense_views.xml b/addons/hr_expense/views/hr_expense_views.xml index c22586eb837..7a046cccd42 100644 --- a/addons/hr_expense/views/hr_expense_views.xml +++ b/addons/hr_expense/views/hr_expense_views.xml @@ -71,7 +71,6 @@ - @@ -632,7 +631,6 @@ - @@ -762,8 +760,7 @@ - - +