Odoo Help

0

How to translate python constraint message

By
Vivekrajan
on 2/16/16, 1:37 AM 637 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
0

Keyur

--Keyur--
1185
| 4 4 8
Ahmedabad, India
--Keyur--

Odoo Expert

Keyur
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.

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: 2/16/16, 1:37 AM
Seen: 637 times
Last updated: 2/16/16, 5:02 AM