Fix allow_mail_archived_partner causing system notifications to send emails

This commit is contained in:
Kristof Bernaert
2026-01-26 03:21:07 +01:00
parent eba3a59295
commit 799216d90c
@@ -7,6 +7,14 @@ from odoo import models, api, fields
class AccountInvoiceSend(models.TransientModel): class AccountInvoiceSend(models.TransientModel):
_inherit = "account.invoice.send" _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 @api.model
def default_get(self, fields): def default_get(self, fields):