Odoo Help


How to translate python constraint message

on 2/16/16, 1:37 AM 882 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
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.

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: 882 times
Last updated: 2/16/16, 5:02 AM