Skip to Content
मेन्यू
This question has been flagged
1 Reply
6094 Views

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
Discard
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
Discard
Related Posts Replies Views Activity
0
जून 16
5328
3
दिस॰ 15
1367
0
मार्च 15
3709
0
फ़र॰ 19
5535
0
अग॰ 15
3763