[FIX] [sale_]loyalty: send gift card mail directly on SO confirmation
Steps to reproduce:
- Install Loyalty module
- Go to Website and buy a gift card
- Checkout and pay the order
Issue:
Only 'Order Confirmation' email is sent directly to the customer,
gift card email is queued and sent later.
Cause:
`send_email` method is called with `force_send=False` by default,
which queues the email to be sent later.
Solution:
Add optional parameter `send_force` (default to `False`) to
`_send_creation_communication` method and call it with
`send_force=True` when confirming a sale order.
opw-3324386
closes odoo/odoo#133427
Signed-off-by:
Nasreddin Boulif (bon) <bon@odoo.com>
Please register or sign in to comment