[NEW] Majority Judgement addons initialisation
This commit is contained in:
17
majority_judgement/models/vote.py
Normal file
17
majority_judgement/models/vote.py
Normal file
@@ -0,0 +1,17 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from odoo import models, fields, api, _
|
||||
|
||||
|
||||
class MajorityJudgementVote(models.Model):
|
||||
_name = "vote"
|
||||
_description = "Majority Judgement vote"
|
||||
|
||||
name = fields.Char(string=_("Name"), required=True)
|
||||
description = fields.Text(string=_("Description"))
|
||||
question = fields.Char(string=_("Question"), required=True)
|
||||
start_time = fields.Datetime(string=_("Start time"))
|
||||
end_time = fields.Datetime(string=_("End time"))
|
||||
|
||||
grade_ids = fields.One2many("grade", "vote_id", string=_("Grades"))
|
||||
candidate_ids = fields.One2many("candidate", "vote_id", string=_("Candidate"))
|
||||
voter_ids = fields.One2many("voter", "vote_id", string=_("Voters"))
|
Reference in New Issue
Block a user