From c8c95d46f9294cb776c90c7f4bca323f210467f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Mon, 6 Aug 2012 17:53:54 +0200 Subject: [PATCH] [IMP] product, hr, pos, mail_group: removed the onchange_image, updated used images and classes in views. bzr revid: tde@openerp.com-20120806155354-sjkrmrffgb2ik4ba --- addons/hr/hr.py | 3 --- addons/hr/hr_view.xml | 2 +- addons/mail/mail_group.py | 5 +---- addons/mail/mail_group_view.xml | 2 +- addons/mail/static/src/css/mail_group.css | 6 ------ addons/point_of_sale/point_of_sale.py | 3 --- addons/product/product.py | 3 --- addons/product/product_view.xml | 3 +-- 8 files changed, 4 insertions(+), 23 deletions(-) diff --git a/addons/hr/hr.py b/addons/hr/hr.py index a153d6319d5..d638549deee 100644 --- a/addons/hr/hr.py +++ b/addons/hr/hr.py @@ -160,9 +160,6 @@ class hr_employee(osv.osv): def _set_image(self, cr, uid, id, name, value, args, context=None): 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': {'image_medium': tools.resize_image_big(value), 'image_small': tools.resize_image_big(value)}} - _columns = { 'country_id': fields.many2one('res.country', 'Nationality'), 'birthday': fields.date("Date of Birth"), diff --git a/addons/hr/hr_view.xml b/addons/hr/hr_view.xml index e1e4c2c5933..5f07df3dea0 100644 --- a/addons/hr/hr_view.xml +++ b/addons/hr/hr_view.xml @@ -21,7 +21,7 @@
- +