Skip to Content
Menu
This question has been flagged
1 Reply
751 Views

Can you display the sales order details directly in the email instead of a PDF? 

Avatar
Discard
Best Answer

Yes, it is possible to display the sales order details directly in the email instead of a PDF.

Here are the steps to achieve this:

  1. Create a new email template for the sales order confirmation email.

  2. In the email template, use the QWeb templating engine to insert the sales order details directly into the email body.

  3. Use the appropriate fields, such as order lines, customer information, and order total, to display the sales order details in the email.

  4. In the sales order form, configure the email template to be used for the confirmation email.

  5. Test the email by creating a sales order and verifying that the details are displayed correctly in the confirmation email.

  6. If you wish to send the email to the customer, you will need to override the email_send method of the sale.order model, and in the email context, you will need to pass the order_id and the email template_id.

Please note that the specific steps may vary depending on your Odoo version and customization.

Avatar
Discard