projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
137310e
)
[FIX] Attachment creation does not set datas_fname in ir_attachments
author
Fabien Meghazi
<fme@openerp.com>
Thu, 12 Jan 2012 13:48:56 +0000
(14:48 +0100)
committer
Fabien Meghazi
<fme@openerp.com>
Thu, 12 Jan 2012 13:48:56 +0000
(14:48 +0100)
lp bug: https://launchpad.net/bugs/909069 fixed
bzr revid: fme@openerp.com-
20120112134856
-um5lw4b42x0vbmiw
addons/web/controllers/main.py
patch
|
blob
|
history
diff --git
a/addons/web/controllers/main.py
b/addons/web/controllers/main.py
index
b640587
..
fd8d85f
100644
(file)
--- a/
addons/web/controllers/main.py
+++ b/
addons/web/controllers/main.py
@@
-1257,6
+1257,7
@@
class Binary(openerpweb.Controller):
attachment_id = Model.create({
'name': ufile.filename,
'datas': base64.encodestring(ufile.read()),
+ 'datas_fname': ufile.filename,
'res_model': model,
'res_id': int(id)
}, context)