appraial priority
This commit is contained in:
parent
382c638619
commit
f31e442d1d
|
|
@ -290,13 +290,14 @@ class StandardAppraisalLines(models.Model):
|
|||
for rec in self:
|
||||
if rec.great_level:
|
||||
value = rec.greed / (rec.great_level / 5)
|
||||
if value <= 1:
|
||||
# 3.5
|
||||
if value >= 1 and value <= 2 :
|
||||
rec.priority = '1'
|
||||
elif value <= 2:
|
||||
elif value >= 2 and value <= 3:
|
||||
rec.priority = '2'
|
||||
elif value <= 3:
|
||||
elif value >= 3 and value <= 4:
|
||||
rec.priority = '3'
|
||||
elif value <= 4:
|
||||
elif value >= 4 and value <= 5:
|
||||
rec.priority = '4'
|
||||
else:
|
||||
rec.priority = '5'
|
||||
|
|
|
|||
Loading…
Reference in New Issue