[NEW] Add grade models and grade management

This commit is contained in:
Stéphan Sainléger
2022-03-05 21:57:45 +01:00
parent 3dd1f5df6e
commit a695473354
7 changed files with 57 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ class MajorityJudgementGradeModel(models.Model):
name = fields.Char(string=_("Name"), required=True)
color = fields.Integer("Color Index", default=0)
sequence = fields.Integer()
class MajorityJudgementGrade(models.Model):
@@ -17,4 +18,5 @@ class MajorityJudgementGrade(models.Model):
name = fields.Char(string=_("Name"), required=True)
color = fields.Integer("Color Index", default=0)
sequence = fields.Integer()
vote_id = fields.Many2one("vote", string=_("Vote"))