Skip to content

Commit

Permalink
Merge a325f29 into 84214ab
Browse files Browse the repository at this point in the history
  • Loading branch information
andhit-r committed Apr 22, 2019
2 parents 84214ab + a325f29 commit 6919880
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gamification_point/__openerp__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# pylint: disable=locally-disabled, manifest-required-author
{
"name": "Gamification Goal's Point",
"version": "8.0.1.0.0",
"version": "8.0.1.1.0",
"category": "Human Resources",
"website": "https://opensynergy-indonesia.com/",
"author": "OpenSynergy Indonesia",
Expand Down
10 changes: 5 additions & 5 deletions gamification_point/models/gamification_goal.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ class GamificationGoal(models.Model):
"definition_id",
"state",
"closed",
"line_id",
)
def _compute_point(self):
for rec in self:
if not rec.closed:
if rec.state == "reached":
rec.point = rec.line_id.reach_point
elif rec.state == "failed":
rec.point = rec.line_id.fail_point
if rec.state == "reached":
rec.point = rec.line_id.reach_point
elif rec.state == "failed":
rec.point = rec.line_id.fail_point

point = fields.Float(
string="Point",
Expand Down

0 comments on commit 6919880

Please sign in to comment.