Odoo - Override translations

Posted on February 15, 2016 in blog • Tagged with odoo, translationLeave a comment

If you need to override an existing translation in your own module, you need to enable this feature by overriding the ir.translation model at first:

from openerp import models


class IrTranslation(models.Model):
    _inherit = 'ir.translation'

    def _get_import_cursor(self, cr, uid, context=None):
        """Allow translation updates."""
        if context is ...
Continue reading