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):