From 1d28d75a57df1f1cd67f3f18ac3e55d62516e70e Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Thu, 12 Mar 2026 11:34:22 +0100 Subject: [PATCH] [IMP] account_invoice_overdue_reminder: subscribe the sender to the partner Auto-subscribe the sender to the partner to which the overdue reminder is sent by email, to make sure that the sender is notified of a potential answer. --- .../wizard/overdue_reminder_wizard.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/account_invoice_overdue_reminder/wizard/overdue_reminder_wizard.py b/account_invoice_overdue_reminder/wizard/overdue_reminder_wizard.py index 51d26b024..2666098ba 100644 --- a/account_invoice_overdue_reminder/wizard/overdue_reminder_wizard.py +++ b/account_invoice_overdue_reminder/wizard/overdue_reminder_wizard.py @@ -588,6 +588,10 @@ def generate_mail_vals(self): if self.company_id.overdue_reminder_attach_invoice: attachment_ids = self._get_attachment_ids(mail) mail.write({"attachment_ids": [Command.set(attachment_ids)]}) + # to make sure the sender receives the potential answer + self.commercial_partner_id.message_subscribe( + partner_ids=[self.env.user.partner_id.id] + ) vals = {"mail_id": mail.id} return vals