Skip to content
Snippets Groups Projects
Commit 3f868e91 authored by niyasraphy's avatar niyasraphy
Browse files

[FIX] gamification: copy False for user karma


before this commit, while duplicating an user,
karma points is also getting copied to newly
created user

after this commit, the copying of karma on
duplicating an user will be stopped.

closes odoo/odoo#118173

X-original-commit: b1be3262
Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
parent ad0236cf
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ from odoo import api, fields, models
class Users(models.Model):
_inherit = 'res.users'
karma = fields.Integer('Karma', default=0)
karma = fields.Integer('Karma', default=0, copy=False)
karma_tracking_ids = fields.One2many('gamification.karma.tracking', 'user_id', string='Karma Changes', groups="base.group_system")
badge_ids = fields.One2many('gamification.badge.user', 'user_id', string='Badges', copy=False)
gold_badge = fields.Integer('Gold badges count', compute="_get_user_badge_level")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment