From 799216d90c6a153d96de05340f721c29dd478ca7 Mon Sep 17 00:00:00 2001 From: Kristof Bernaert Date: Mon, 26 Jan 2026 03:21:07 +0100 Subject: [PATCH] Fix allow_mail_archived_partner causing system notifications to send emails --- allow_mail_archived_partner/models/account_move_send.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/allow_mail_archived_partner/models/account_move_send.py b/allow_mail_archived_partner/models/account_move_send.py index c5aff46..d904b06 100755 --- a/allow_mail_archived_partner/models/account_move_send.py +++ b/allow_mail_archived_partner/models/account_move_send.py @@ -7,6 +7,14 @@ from odoo import models, api, fields class AccountInvoiceSend(models.TransientModel): _inherit = "account.invoice.send" + # OVERRIDE THE FIELD DEFINITION + partner_ids = fields.Many2many( + 'res.partner', + string='Recipients', + help='Contacts of the invoice that will receive the email.', + context={'active_test': False}, + check_company=True, + ) @api.model def default_get(self, fields):