Odoo Help


v9: How can I make sure strings in my own custom modules can be exported to PO files so I can translate them? I tried importing "_" and using "_" in front of them.

Sebastian Friedrich
on 11/17/16, 11:02 AM 316 views


I would like to translate a warning in odoo 9. The original message is in English and I want to translate it into German. 

When I export the translation as a po file, the content of the warning is not shown in the file so I can't translate it. The report and everything else is present and the

I tried importing " _ " and wrapping the string to translate with it.

Anyone knows how to get this to work?

from openerp.tools.translate import _
return {                   
             'warning': {
                            'title': _("No corresponding product"),
                            'message': _("Please create an expense product called Additional meal allowance"),

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 11/17/16, 11:02 AM
Seen: 316 times
Last updated: 11/17/16, 12:31 PM