[IMP] Removed a debug print; added context propagation in one method
bzr revid: tde@openerp.com-20120313161022-mxkbk34zis7lmez9
This commit is contained in:
parent
07570c565d
commit
7290cb3484
|
@ -150,7 +150,6 @@ class hr_employee(osv.osv):
|
|||
_inherits = {'resource.resource': "resource_id"}
|
||||
|
||||
def onchange_photo_mini(self, cr, uid, ids, value, context=None):
|
||||
print 'cacacaporinfeorinf'
|
||||
return {'value': {'photo': value, 'photo_mini': self._photo_resize(cr, uid, value) } }
|
||||
|
||||
def _set_photo_mini(self, cr, uid, id, name, value, args, context=None):
|
||||
|
@ -170,7 +169,7 @@ class hr_employee(osv.osv):
|
|||
if not hr_empl.photo:
|
||||
result[hr_empl.id] = False
|
||||
else:
|
||||
result[hr_empl.id] = self._photo_resize(cr, uid, hr_empl.photo)
|
||||
result[hr_empl.id] = self._photo_resize(cr, uid, hr_empl.photo, context=context)
|
||||
return result
|
||||
|
||||
_columns = {
|
||||
|
|
Loading…
Reference in New Issue