[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:
committed by
Thibault Delavallée
parent
920ada7054
commit
de9342fac4
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user