From a05e83672512dc240d9c241fe35d864ac0105d22 Mon Sep 17 00:00:00 2001 From: Kristof Bernaert Date: Sun, 1 Feb 2026 17:53:19 +0100 Subject: [PATCH] correct problem for sending invoice emails --- allow_mail_archived_partner/models/account_move.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/allow_mail_archived_partner/models/account_move.py b/allow_mail_archived_partner/models/account_move.py index cbcf08f..ca13675 100755 --- a/allow_mail_archived_partner/models/account_move.py +++ b/allow_mail_archived_partner/models/account_move.py @@ -1,6 +1,3 @@ -raise Exception("🔥 account_move.py LOADED 🔥") - - import logging _logger = logging.getLogger(__name__) @@ -11,8 +8,10 @@ from odoo import models class AccountMove(models.Model): _inherit = "account.move" - def action_send_and_print(self): - _logger.error("🔥🔥🔥 CUSTOM action_send_and_print HIT 🔥🔥🔥") - _logger.error("🔥 Context at entry: %s", dict(self.env.context)) + def action_invoice_sent(self): + _logger.error("🔥🔥🔥 HIT action_invoice_sent 🔥🔥🔥") + return super().action_invoice_sent() - return super().action_send_and_print() + def action_invoice_send(self): + _logger.error("🔥🔥🔥 HIT action_invoice_send 🔥🔥🔥") + return super().action_invoice_send()