Skip to Content
Menú
This question has been flagged
1 Respondre
6085 Vistes

I have an Error message that needs to be displayed in Spanish using internationalization but the internalization does not seem to work for osv.except_osv

raise osv.except_osv(('Warning'), (' First name is Mandatory ') )

How do I solve this issue ?

Avatar
Descartar
Best Answer

It is easy like that...

Import the method: from openerp.tools.translate import _

And use the method to make your python text translateable...

raise osv.except_osv(_('Warning'), _(' First name is Mandatory ') )

That's it!

Avatar
Descartar
Related Posts Respostes Vistes Activitat
0
de juny 16
5314
3
de des. 15
1367
0
de març 15
3706
0
de febr. 19
5534
0
d’ag. 15
3760