Vishmita Jadeja (openerp) has proposed merging 
lp:~openerp-dev/openerp-web/trunk-bug-909069-vja into lp:openerp-web.

Requested reviews:
  OpenERP R&D Web Team (openerp-dev-web)
Related bugs:
  Bug #909069 in OpenERP Web: "(6.1)attachment without fname_attachment"
  https://bugs.launchpad.net/openerp-web/+bug/909069

For more details, see:
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-bug-909069-vja/+merge/88210

Filename should be display when download attachment.
-- 
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-bug-909069-vja/+merge/88210
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openerp-web/trunk-bug-909069-vja.
=== modified file 'addons/web/controllers/main.py'
--- addons/web/controllers/main.py	2012-01-10 15:50:20 +0000
+++ addons/web/controllers/main.py	2012-01-11 13:37:35 +0000
@@ -1257,6 +1257,7 @@
             attachment_id = Model.create({
                 'name': ufile.filename,
                 'datas': base64.encodestring(ufile.read()),
+                'datas_fname': ufile.filename,
                 'res_model': model,
                 'res_id': int(id)
             }, context)

_______________________________________________
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