diff --git a/odoo/cli/server.py b/odoo/cli/server.py index d740dc7282a..7c6ccd30b54 100644 --- a/odoo/cli/server.py +++ b/odoo/cli/server.py @@ -98,7 +98,7 @@ def export_translation(): fileformat = os.path.splitext(config["translate_out"])[-1][1:].lower() - with open(config["translate_out"], "w") as buf: + with open(config["translate_out"], "wb") as buf: registry = odoo.modules.registry.Registry.new(dbname) with odoo.api.Environment.manage(): with registry.cursor() as cr: