[NEW] Majority Judgement addons initialisation
This commit is contained in:
14
majority_judgement/models/voter.py
Normal file
14
majority_judgement/models/voter.py
Normal file
@@ -0,0 +1,14 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from odoo import models, fields, api, _
|
||||
|
||||
|
||||
class MajorityJudgementVoter(models.Model):
|
||||
_name = "voter"
|
||||
_description = "Majority Judgement voter"
|
||||
|
||||
partner_id = fields.Many2one(
|
||||
"res.partner", string=_("Associated contact"), required=True
|
||||
)
|
||||
vote_id = fields.Many2one("vote", string=_("Vote"))
|
||||
has_voted = fields.Boolean(string="Has voted")
|
||||
vote_timestamp = fields.Datetime(string=_("Has voted on"))
|
Reference in New Issue
Block a user