[FIX] gamification: on delete goal user, cascade

Otherwise, this is no more possible to delete users with gamification goals
This commit is contained in:
Denis Ledoux 2014-10-07 09:57:01 +02:00
parent fc9fc3e0b8
commit 56f678c8e9
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ class gamification_goal(osv.Model):
_columns = {
'definition_id': fields.many2one('gamification.goal.definition', string='Goal Definition', required=True, ondelete="cascade"),
'user_id': fields.many2one('res.users', string='User', required=True, auto_join=True),
'user_id': fields.many2one('res.users', string='User', required=True, auto_join=True, ondelete="cascade"),
'line_id': fields.many2one('gamification.challenge.line', string='Goal Line', ondelete="cascade"),
'challenge_id': fields.related('line_id', 'challenge_id',
string="Challenge",