[document trunk] Insufficient size in file_type and a bug in write
Bug #538224 reported by
Omar (Pexego)
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hi,
I report two bugs, the first is that file_type field of ir.attachment in document module, has 32 characters of size but for example: mime type of .odt is "application/
Second is in write of ir.attachment in document module, in first line: res = self.search(cr, uid, [('id', 'in', ids)]), this statment trusts on ids is a list, but if it isn't a list fails. I include in the patch an explicit conversion to list if ids not is instance of it.
Thanks
Related branches
To post a comment you must log in.
Fixed by revision 3185 <email address hidden>.
Thank you for the patch.