From 662e4944d98608ba1084a07700ac76698b37356b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thibault=20Delavall=C3=A9e?= Date: Fri, 3 Aug 2012 10:03:57 +0200 Subject: [PATCH] [IMP] hr: image is not modified at display when choosing a new one; btu resized when saving. WIP, to be validated. bzr revid: tde@openerp.com-20120803080357-s3kkjzm3n7cquvpf --- addons/hr/hr.py | 2 +- addons/hr/hr_view.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/hr/hr.py b/addons/hr/hr.py index b5e5b50..a153d63 100644 --- a/addons/hr/hr.py +++ b/addons/hr/hr.py @@ -161,7 +161,7 @@ class hr_employee(osv.osv): return self.write(cr, uid, [id], {'image': tools.resize_image_big(value)}, context=context) def onchange_image(self, cr, uid, ids, value, context=None): - return {'value': tools.get_resized_images(value)} + return {'value': {'image_medium': tools.resize_image_big(value), 'image_small': tools.resize_image_big(value)}} _columns = { 'country_id': fields.many2one('res.country', 'Nationality'), diff --git a/addons/hr/hr_view.xml b/addons/hr/hr_view.xml index 6b379a1..59b0605 100644 --- a/addons/hr/hr_view.xml +++ b/addons/hr/hr_view.xml @@ -21,7 +21,7 @@
- +