[IMP] account: dashboard tax return task due
By default the reminder for tax report is set to 7 days after period (date is correct). On the Accounting Dashboard, we should therefore not see the reminder on the dashboard of the Miscellaneous journal if the deadline of the tax report is not due. For example, we are the 16th of March, we do not want to see the reminder for the Tax Report for March. We only want to see it from the 7th of April. closes odoo/odoo#116051 Task: 3231957 X-original-commit: 66672cf7f63548638ad218d5cae44cde5868b318 Signed-off-by: Quentin De Paoli <qdp@odoo.com> Signed-off-by: hupo-odoo <hupo@odoo.com>
This commit is contained in:
@@ -49,6 +49,7 @@ class account_journal(models.Model):
|
||||
LEFT JOIN mail_activity_type act_type ON act.activity_type_id = act_type.id
|
||||
WHERE act.res_model = 'account.move'
|
||||
AND m.journal_id = %s
|
||||
AND (act_type.category != 'tax_report' OR (act_type.category = 'tax_report' AND act.date_deadline <= CURRENT_DATE))
|
||||
'''
|
||||
self.env.cr.execute(sql_query, (journal.id,))
|
||||
for activity in self.env.cr.dictfetchall():
|
||||
|
||||
Reference in New Issue
Block a user