Merge pull request #2983 from expsa/dev_odex25_transactions

Dev odex25 transactions
This commit is contained in:
SamirLADOUI-sa 2025-05-05 13:45:03 +01:00 committed by GitHub
commit 0141beb3f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ class ReportIncomingTransaction(models.AbstractModel):
if internal_ids:
today = fields.date.today()
for rec in internal_ids:
if datetime.datetime.strptime(rec.due_date, "%Y-%m-%d") < datetime.datetime.strptime(str(today), "%Y-%m-%d"):
if datetime.datetime.strptime(str(rec.due_date), "%Y-%m-%d") < datetime.datetime.strptime(str(today), "%Y-%m-%d"):
trasc = rec.trace_ids.filtered(lambda z: z.action == 'forward' or z.action == 'sent' or
z.action == 'reply')[0]
name = ''