[document trunk] Insufficient size in file_type and a bug in write

Bug #538224 reported by Omar (Pexego)
6
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/vnd.oasis.opendocument.text" and it has more than 32 characters. I include a patch that change it to 64.

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

Tags: pexego

Related branches

Revision history for this message
Omar (Pexego) (omar7r) wrote :
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Fixed by revision 3185 <email address hidden>.
Thank you for the patch.

Changed in openobject-addons:
status: New → Confirmed
milestone: none → 5.2
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.