[NEW] Majority Judgement addons initialisation

This commit is contained in:
Stéphan Sainléger
2022-03-05 00:47:39 +01:00
parent ab18af348f
commit 6a9535ee5c
13 changed files with 268 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
from odoo import models, fields, api, _
class MajorityJudgementGradeModel(models.Model):
_name = "grade.model"
_description = "Majority Judgement grade model"
name = fields.Char(string=_("Name"), required=True)
color = fields.Integer("Color Index", default=0)
class MajorityJudgementGrade(models.Model):
_name = "grade"
_description = "Majority Judgement grade"
name = fields.Char(string=_("Name"), required=True)
color = fields.Integer("Color Index", default=0)
vote_id = fields.Many2one("vote", string=_("Vote"))