Can you display the sales order details directly in the email instead of a PDF?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
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:
Create a new email template for the sales order confirmation email.
In the email template, use the QWeb templating engine to insert the sales order details directly into the email body.
Use the appropriate fields, such as order lines, customer information, and order total, to display the sales order details in the email.
In the sales order form, configure the email template to be used for the confirmation email.
Test the email by creating a sales order and verifying that the details are displayed correctly in the confirmation email.
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.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up