diff --git a/addons/sale/models/payment_transaction.py b/addons/sale/models/payment_transaction.py index f0b3c94456f..cccb02941a2 100644 --- a/addons/sale/models/payment_transaction.py +++ b/addons/sale/models/payment_transaction.py @@ -53,6 +53,8 @@ class PaymentTransaction(models.Model): for so in tx.sale_order_ids: so.reference = tx._compute_sale_order_reference(so) + if tx.operation == 'validation': + continue # Send the payment status email. # The transactions are manually cached while in a sudoed environment to prevent an # AccessError: In some circumstances, sending the mail would generate the report assets