Odoo Help


How to translate python constraint message

on 2/16/16, 1:37 AM 580 views

Hi folk,

How do we translate the python constraint message when the user is using some other language and not English?

You çan use _ function from openerp tool! _('str translatable')

Jérémy Kersten (jke)
on 2/16/16, 1:55 AM


| 4 4 8
Ahmedabad, India

Odoo Expert

On 2/16/16, 5:02 AM

Hi Vivek,

You can differentiate current language based on context dictionary & by that way you can display your custom language constraint message.

Hope that helps! Please let me know if it still doesn't work.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

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

1 follower(s)


Asked: 2/16/16, 1:37 AM
Seen: 580 times
Last updated: 2/16/16, 5:02 AM