[FIX] mail: attempt to fix crazy bug
bzr revid: qdp-launchpad@openerp.com-20121018084927-yr1mp6svwq55eayn
This commit is contained in:
@@ -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. "\
|
||||
|
||||
Reference in New Issue
Block a user