Skip to content
Permalink
Browse files

fix(web_debranding): no more bytes returned

  • Loading branch information...
blaggacao committed Jul 10, 2019
1 parent 1a6b928 commit 49cbb4bbf44ea7d75986262156e9f031a36340ac
Showing with 2 additions and 2 deletions.
  1. +2 −2 web_debranding/controllers/main.py
@@ -17,7 +17,7 @@
import io
import base64

from ..models.ir_translation import debrand, debrand_bytes
from ..models.ir_translation import debrand

db_monodb = http.db_monodb

@@ -81,7 +81,7 @@ def qweb(self, mods=None, db=None):
content, checksum = controllers_main.concat_xml(files)
if request.context['lang'] == 'en_US':
# request.env could be not available
content = debrand_bytes(request.session.db and request.env or None, content)
content = debrand(request.session.db and request.env or None, content)

return controllers_main.make_conditional(
request.make_response(content, [('Content-Type', 'text/xml')]),

0 comments on commit 49cbb4b

Please sign in to comment.
You can’t perform that action at this time.