From 04489abea9fe43abdeb7a11466a90db83dfff1ee Mon Sep 17 00:00:00 2001 From: hupo-odoo Date: Fri, 21 Apr 2023 11:37:41 +0000 Subject: [PATCH] [REV] account: journal task reminder Revert the following commit : https://github.com/odoo/odoo/commit/66672cf7f63548638ad218d5cae44cde5868b318 The reason is that it is at the end not functionally desired. We do want to see the task reminder for tax return on journal dashboard no matter the date. task : 3231957 closes odoo/odoo#119428 X-original-commit: f1f5c5025ac2c7132590065fe701e3117490680c Signed-off-by: Brice Bartoletti (bib) --- addons/account/models/account_journal_dashboard.py | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/account/models/account_journal_dashboard.py b/addons/account/models/account_journal_dashboard.py index db07342c542..7a28bce641e 100644 --- a/addons/account/models/account_journal_dashboard.py +++ b/addons/account/models/account_journal_dashboard.py @@ -78,7 +78,6 @@ class account_journal(models.Model): JOIN mail_activity activity ON activity.res_id = move.id AND activity.res_model = 'account.move' LEFT JOIN mail_activity_type act_type ON activity.activity_type_id = act_type.id WHERE move.journal_id = ANY(%(ids)s) - AND (act_type.category != 'tax_report' OR (act_type.category = 'tax_report' AND activity.date_deadline <= %(today)s)) """ self.env.cr.execute(sql_query, {'ids': self.ids, 'today': today, 'lang': lang}) for activity in self.env.cr.dictfetchall():