Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
553 Tampilan

Hello...


I'm looking in the Sales: Order Confirmation template. There is a whole table that does not seem to render in the emails that includes the products in the SO, ship-to addresses, etc.


What is the condition that limits this from displaying the products for ALL order confirmation emails? What code do I need to show this for all emails - quotes, Sales Orders, etc.


Thanks in advance.


Avatar
Buang
Penulis

@Ray. I'd be happy to give more details.

1. Go to your favorite AI Chat service. I've been Anthropic's Claude Sonet.

2. Put the your Odoo into developer mode

3. At the dashboard, start typing "Email Template" > Search for Sales: Order Confirmation Template

4. Copy the HTML Code.

5. Here's the prompt I used: I have the following code, it's from an Odoo email template. However, when I run the code in the production Odoo, it does not display the table in the email with the product data and shipping data. Please reformat this email to show the products. Also, include a modern responsive design.

It gave me some code, however I ran into three different errors. I next feed the errors in - one by one. And, I final got something to work.

Make sure you follow along with what your chatbot gives you, at one point it removed the shipping charge (as that caused an error). I ask it to add it back...which it did.

I am explicitly not going to post my final code, as I didn't write the final code myself.

Penulis Jawaban Terbai

BTW, I figured this out. Actually Claude figured this out.

Try it!

Avatar
Buang

Can you share the solution for others who may read this question?