[FIX] base: onchange_type should return only the big image, not the medium or the small

bzr revid: qdp-launchpad@openerp.com-20121004130224-t9wcp1bn0014px3f
This commit is contained in:
Quentin (OpenERP)
2012-10-04 15:02:24 +02:00
parent 9255d5d3ef
commit 154675f4ad
+1 -1
View File
@@ -301,7 +301,7 @@ class res_partner(osv.osv, format_address):
def onchange_type(self, cr, uid, ids, is_company, context=None):
# get value as for an onchange on the image
value = tools.image_get_resized_images(self._get_default_image(cr, uid, is_company, context), return_big=True)
value = tools.image_get_resized_images(self._get_default_image(cr, uid, is_company, context), return_big=True, return_medium=False, return_small=False)
value['title'] = False
if is_company:
value['parent_id'] = False