[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) <bib@odoo.com>
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user