[FIX] gamification: on delete badge user, cascade

Otherwise, this is no more possible to delete users having badges
This commit is contained in:
Denis Ledoux 2014-10-07 10:24:57 +02:00
parent 56f678c8e9
commit f305b9e95b
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ class gamification_badge_user(osv.Model):
_order = "create_date desc"
_columns = {
'user_id': fields.many2one('res.users', string="User", required=True),
'user_id': fields.many2one('res.users', string="User", required=True, ondelete="cascade"),
'sender_id': fields.many2one('res.users', string="Sender", help="The user who has send the badge"),
'badge_id': fields.many2one('gamification.badge', string='Badge', required=True),
'comment': fields.text('Comment'),