Odoo Help

Welcome!

This community 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.

0

How to translate python constraint message

By
Vivekrajan
on 2/16/16, 1:37 AM 507 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--
1165
| 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.

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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