Odoo Help


How to add priority name of opportunity in email template ?

Ahmed elbarbary
on 1/11/15, 3:00 AM 998 views

Dear all ,

i want to add the priority name in email template and this field is selection field , when i type

priority : ${object.priority} ---> it show in the email only number of selection " 1 "

but i need priority name : highest or high or normal.

how can i get that from mail template ?


Atchuthan - Technical Consultant, Sodexis Inc

--Atchuthan - Technical Consultant, Sodexis Inc--
| 5 5 8
Puducherry, India
--Atchuthan - Technical Consultant, Sodexis Inc--
Passionate coder in Python/Odoo(formerly known as OpenERP).

Contact me via GMail: atchuthantu@gmail.com via Skype: atchuthan_skype
via Linkedin: http://in.linkedin.com/in/atchuthantu
Atchuthan - Technical Consultant, Sodexis Inc
On 1/21/15, 12:05 AM

There is no direct approach to this, but can be achieved in a round about manner.

%if object.priority==1:
%elif object.priority==2:
%elif object.priority==3:
      Something here

thanks for your reply , could you tell me how can i write condition in email template? i mean the syntaxfor that . the priority is ${object.priority}

Ahmed elbarbary
on 1/22/15, 3:05 AM

this code works in email template i.e. %if then %endif is the standard way of checking a condition at email template.

Atchuthan - Technical Consultant, Sodexis Inc
on 1/30/15, 12:58 AM

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.


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

2 follower(s)


Asked: 1/11/15, 3:00 AM
Seen: 998 times
Last updated: 3/16/15, 8:10 AM