Skip to content

web_debranding on odoo 17 prevents loading the python code translations #78

@Mhnd3

Description

@Mhnd3

inheriting the "_get_translation" of the "_" object, makes the odoo.http.request.env to be "None" as will as the "cursor" and the "uid", which is used in the "_get_lang" and "_get_cr" methods as one of the ways to lookup the language and the cursor. which eventually leads for the python code translations to not be loaded and logs the following "_logger.debug('translation went wrong for "%r", skipped', source)".
I Tried to comment out the import of the "translate.py" and the translations work fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions