- 'hr.employee': (lambda self, cr, uid, ids, c={}: ids, ['photo_big'], 10),
- }, help="Image used as photo for the employee. It is automatically resized as a 180x150 px image. A larger photo is stored inside the photo_big field."),
+ 'hr.employee': (lambda self, cr, uid, ids, c={}: ids, ['image'], 10),
+ },
+ help="Medium-sized photo of the user. It is automatically "\
+ "resized as a 180x180px image, with aspect ratio keps. "\
+ "Use this field in form views or some kanban views."),
+ 'image_small': fields.function(_get_image_resized, fnct_inv=_set_image_resized,
+ string="Smal-sized photo", type="binary", multi="_get_image_resized",
+ store = {
+ 'hr.employee': (lambda self, cr, uid, ids, c={}: ids, ['image'], 10),
+ },
+ help="Small-sized photo of the user. It is automatically "\
+ "resized as a 50x50px image, with aspect ratio keps. "\
+ "Use this field in form views or some kanban views."),
+ 'active': fields.boolean('Active'),