correct problem for sending invoice emails
This commit is contained in:
@@ -8,8 +8,8 @@ from odoo import models
|
|||||||
class AccountMove(models.Model):
|
class AccountMove(models.Model):
|
||||||
_inherit = "account.move"
|
_inherit = "account.move"
|
||||||
|
|
||||||
def _send_invoice(self):
|
def action_send_and_print(self):
|
||||||
_logger.error("🔥🔥🔥 CUSTOM _send_invoice HIT 🔥🔥🔥")
|
_logger.error("🔥🔥🔥 CUSTOM action_send_and_print HIT 🔥🔥🔥")
|
||||||
_logger.error("🔥 Context: %s", dict(self.env.context))
|
_logger.error("🔥 Context at entry: %s", dict(self.env.context))
|
||||||
|
|
||||||
return super(AccountMove, self.with_context(active_test=False))._send_invoice()
|
return super().action_send_and_print()
|
||||||
|
|||||||
Reference in New Issue
Block a user