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 ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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!
Create an account today to enjoy exclusive features and engage with our awesome community!
RegistráciaRelated Posts | Replies | Zobrazenia | Aktivita | |
---|---|---|---|---|
|
0
jún 16
|
5307 | ||
|
3
dec 15
|
1367 | ||
|
0
mar 15
|
3702 | ||
|
0
feb 19
|
5519 | ||
|
0
aug 15
|
3749 |