Turkesh Patel (openERP) has proposed merging 
lp:~openerp-dev/openerp-web/trunk-bug-872707-tpa into lp:openerp-web.

Requested reviews:
  OpenERP R&D Web Team (openerp-dev-web)
Related bugs:
  Bug #872707 in OpenERP Web: "trouble with attachments"
  https://bugs.launchpad.net/openerp-web/+bug/872707

For more details, see:
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-bug-872707-tpa/+merge/79392
-- 
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-bug-872707-tpa/+merge/79392
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openerp-web/trunk-bug-872707-tpa.
=== modified file 'addons/web/controllers/main.py'
--- addons/web/controllers/main.py	2011-10-06 15:39:59 +0000
+++ addons/web/controllers/main.py	2011-10-14 11:18:24 +0000
@@ -1008,7 +1008,7 @@
         Model = req.session.model(model)
         context = req.session.eval_context(req.context)
         res = Model.read([int(id)], [field, fieldname], context)[0]
-        filecontent = res.get(field, '')
+        filecontent = base64.b64decode(res.get(field, ''))
         if not filecontent:
             return req.not_found()
         else:

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to