Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
6081 Vizualizări

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 ?

Imagine profil
Abandonează
Cel mai bun răspuns

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!

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
iun. 16
5309
3
dec. 15
1367
0
mar. 15
3706
0
feb. 19
5533
0
aug. 15
3755