Fix allow_mail_archived_partner causing system notifications to send emails
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user