[FIX] mail: attempt to fix crazy bug

bzr revid: qdp-launchpad@openerp.com-20121018084927-yr1mp6svwq55eayn
This commit is contained in:
Quentin (OpenERP)
2012-10-18 10:49:27 +02:00
parent d0c38a833c
commit 4dfb95b46e
+2 -2
View File
@@ -61,7 +61,7 @@ class mail_group(osv.Model):
'image_medium': fields.function(_get_image, fnct_inv=_set_image,
string="Medium-sized photo", type="binary", multi="_get_image",
store={
'mail.group': (lambda self, cr, uid, ids, c={}: ids, ['image'], 10),
'mail.group': (lambda self, cr, uid, ids, c={}: ids, ['image', 'image_medium'], 10),
},
help="Medium-sized photo of the group. It is automatically "\
"resized as a 128x128px image, with aspect ratio preserved. "\
@@ -69,7 +69,7 @@ class mail_group(osv.Model):
'image_small': fields.function(_get_image, fnct_inv=_set_image,
string="Small-sized photo", type="binary", multi="_get_image",
store={
'mail.group': (lambda self, cr, uid, ids, c={}: ids, ['image'], 10),
'mail.group': (lambda self, cr, uid, ids, c={}: ids, ['image', 'image_small'], 10),
},
help="Small-sized photo of the group. It is automatically "\
"resized as a 64x64px image, with aspect ratio preserved. "\