-
- Downloads
[FIX] sale_loyalty: prevent sending coupon message on failed sale confirm
There can be multiple causes that could prevent a sales order gets confirmed when we push the *Confirm* button. This can be common when extension modules come to play. The simplest way to reproduce it (no extra modules needed) would be to make an automated action on sale.order with a criteria that could avoid the confirmation throwing a UserError. The coupon email would be sent anyway as we can't rollback a mail sending once it's gone away but it wouldn't be valid as the process stopped after it. So we want to prevent sending that mail if the sale.order can't be confirmed. TT42124 closes odoo/odoo#116898 X-original-commit: 14103b62 Signed-off-by:Victor Feyens (vfe) <vfe@odoo.com>
Loading
Please register or sign in to comment