Odoo Help

0

Show selection value in email template

By
Seppe De Roeck
on 8/22/16, 3:51 PM 314 views

Hi,

I have an email template that displays some variable information, but I can't seem to show the value of a selection field.

The below code shows the selection KEY, but not the VALUE.  For example if x_order_type is a selection field with values [('R','Regular'),('D','Dropship')], I want to show "Regular" instead of "R".


<TR>

<td width=15%>${opiline.x_opi_topic_id.x_name}</td>

<td width=10%>${opiline.x_responsible}</td>

<td width=10%>${opiline.x_order_type}</td>

<td width=65%>${opiline.x_instruction or ''}<br>(last update:${opiline.write_date})</td>

</TR>

0
Ajeet Yadav
On 8/23/16, 6:42 AM

you can get your answer on below link-

\https://www.odoo.com/forum/help-1/question/showing-the-string-value-of-a-selection-field-in-qweb-report-92686

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 8/22/16, 3:51 PM
Seen: 314 times
Last updated: 8/23/16, 6:42 AM