Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
6090 Переглядів

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 ?

Аватар
Відмінити
Найкраща відповідь

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!

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
черв. 16
5327
3
груд. 15
1367
0
бер. 15
3708
0
лют. 19
5534
0
серп. 15
3763