[FIX] ir_attachment : potential buggy comma

Copy/paste mistake and the comma stays at the end of the line. This
causes a wrong affectation : indeed, `index_content` gets a tuple with
the desired value. This does not cause crashes, and the representation
of the tuple is correctly stored in database, but this is not the
expected behavior.
This commit is contained in:
Jérome Maes
2016-02-26 16:09:36 +01:00
committed by Thibault Delavallée
parent 920ada7054
commit de9342fac4
+1 -1
View File
@@ -165,7 +165,7 @@ class ir_attachment(osv.osv):
fname_to_delete = attach.store_fname
location = self._storage(cr, uid, context)
# compute the index_content field
vals['index_content'] = self._index(cr, SUPERUSER_ID, bin_data, attach.datas_fname, attach.mimetype),
vals['index_content'] = self._index(cr, SUPERUSER_ID, bin_data, attach.datas_fname, attach.mimetype)
if location != 'db':
# create the file
fname = self._file_write(cr, uid, value, checksum)