[NEW] Majority Judgement addons initialisation
This commit is contained in:
16
majority_judgement/models/candidate.py
Normal file
16
majority_judgement/models/candidate.py
Normal file
@@ -0,0 +1,16 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from odoo import models, fields, api, _
|
||||
|
||||
|
||||
class MajorityJudgementCandidate(models.Model):
|
||||
_name = "candidate"
|
||||
_description = "Majority Judgement candidate"
|
||||
|
||||
name = fields.Char(string=_("Name"), required=True)
|
||||
description = fields.Text(string=_("Description"))
|
||||
vote_id = fields.Many2one("vote", string=_("Vote"))
|
||||
final_grade = fields.Many2one("grade", string=_("Final Grage"))
|
||||
ballot_line_ids = fields.One2many(
|
||||
"ballot.line", "candidate_id", string=_("Ballot lines")
|
||||
)
|
Reference in New Issue
Block a user