I am trying to run a for loop in the email template of Odoo 15 and it is not working.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I am trying to run a for loop in the email template of Odoo 15 and it is not working.
Hello Golam Mostafa,
Hope you are doing Well.
For running the for loop for email template in odoo 15 has been changed.
Find Code in Comment.
Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari
So for running the loop you can use the reference code below:
<tr t-foreach="object.lines" t-as="line">
<td><span t-field="line.product_id.name"/></td>
<td><span t-field="line.qty"/></td>
<td><span t-field="line.price_unit"/></td>
<td><span t-field="line.price_subtotal_incl"/></td>
</tr>
Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!
RekisteröidyAiheeseen liittyviä artikkeleita | Vastaukset | Näkymät | Toimenpide | |
---|---|---|---|---|
|
0
lokak. 21
|
2339 | ||
|
2
tammik. 24
|
4253 | ||
Problem with email template (SOLVED)
Ratkaistu
|
|
2
tammik. 24
|
9929 | |
force send email in odoo
Ratkaistu
|
|
2
jouluk. 22
|
5298 | |
|
1
maalisk. 21
|
9487 |