Odoo Help

1

How to add priority name of opportunity in email template ?

By
Ahmed elbarbary
on 1/11/15, 3:00 AM 906 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 ?

0

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

%if object.priority==1:
       Highest
%elif object.priority==2:
       High
%elif object.priority==3:
       Normal
%else:
      Something here
%endif

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.

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

2 follower(s)

Stats

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