[FIX] hr_gamification: use correct granting method
bzr revid: mat@openerp.com-20131216131824-webc2alxly7l5z83
This commit is contained in:
parent
c301558bf9
commit
cf39b18dc0
|
@ -106,7 +106,7 @@ class hr_grant_badge_wizard(osv.TransientModel):
|
|||
if uid == wiz.user_id.id:
|
||||
raise osv.except_osv(_('Warning!'), _('You can not send a badge to yourself'))
|
||||
|
||||
if badge_obj._can_grant_badge(cr, uid,
|
||||
if badge_obj.check_granting(cr, uid,
|
||||
user_from_id=uid,
|
||||
badge_id=wiz.badge_id.id,
|
||||
context=context):
|
||||
|
|
Loading…
Reference in New Issue