[IMP] studies_base:
Studies vue + progress status and state and status fields, views, and values
This commit is contained in:
@@ -14,6 +14,7 @@ from . import study_type
|
||||
from . import study_questionnaire_category
|
||||
from . import study_questionnaire_response
|
||||
from . import study_questionnaire_status
|
||||
from . import study_questionnaire_progress_status
|
||||
from . import study_questionnaire_subject_type
|
||||
from . import study_questionnaire_type
|
||||
from . import study_participant_progress_status
|
||||
|
@@ -8,5 +8,6 @@ class StudyParticipantProgressStatus(models.Model):
|
||||
_name = "study.participant.progress.status"
|
||||
|
||||
name = fields.Char("Name")
|
||||
value = fields.Char("Value")
|
||||
sequence = fields.Integer("Sequence")
|
||||
|
||||
|
@@ -9,4 +9,5 @@ class StudyParticipantState(models.Model):
|
||||
|
||||
name = fields.Char("Name")
|
||||
sequence = fields.Integer("Sequence")
|
||||
value = fields.Char("Value")
|
||||
|
||||
|
@@ -7,4 +7,14 @@ from odoo.exceptions import UserError
|
||||
class StudyProgressStatus(models.Model):
|
||||
_name = "study.progress.status"
|
||||
|
||||
|
||||
study_id = fields.Many2one("study.study", string="Étude")
|
||||
state = fields.Selection([
|
||||
('DRAFT', 'Brouillon'),
|
||||
('NOT-YET-RECRUITING', 'À venir'),
|
||||
('RECRUITING', 'En cours de recrutement'),
|
||||
('ACTIVE-BUT-NOT-RECRUITING', 'Active mais ne recrute plus'),
|
||||
('COMPLETED', 'Terminée'),
|
||||
('WITHDRAWN', 'Annulé')], string="Avancement de l'étude")
|
||||
actual = fields.Boolean("Statut actuel")
|
||||
date_begin = fields.Date("Date de début de l'état")
|
||||
date_end = fields.Date("Date de fin de l'état")
|
13
studies_base/models/study_questionnaire_progress_status.py
Normal file
13
studies_base/models/study_questionnaire_progress_status.py
Normal file
@@ -0,0 +1,13 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from odoo import api, fields, models, _
|
||||
from odoo import osv
|
||||
from odoo.exceptions import UserError
|
||||
|
||||
|
||||
class StudyQuestionnaireProgressStatus(models.Model):
|
||||
_name = "study.questionnaire.progress.status"
|
||||
|
||||
name = fields.Char("Name")
|
||||
value = fields.Char("Value")
|
||||
sequence = fields.Integer("Sequence")
|
||||
|
@@ -8,5 +8,6 @@ class StudyQuestionnaireResponseProgressStatus(models.Model):
|
||||
_name = "study.questionnaire.response.progress.status"
|
||||
|
||||
name = fields.Char("Name")
|
||||
value = fields.Char("Value")
|
||||
sequence = fields.Integer("Sequence")
|
||||
|
||||
|
@@ -8,5 +8,6 @@ class StudyQuestionnaireResponseState(models.Model):
|
||||
_name = "study.questionnaire.response.state"
|
||||
|
||||
name = fields.Char("Name")
|
||||
value = fields.Char("Value")
|
||||
sequence = fields.Integer("Sequence")
|
||||
|
||||
|
@@ -8,5 +8,6 @@ class StudyQuestionnaireStatus(models.Model):
|
||||
_name = "study.questionnaire.status"
|
||||
|
||||
name = fields.Char("Name")
|
||||
value = fields.Char("Value")
|
||||
sequence = fields.Integer("Sequence")
|
||||
|
||||
|
@@ -8,5 +8,6 @@ class StudStatus(models.Model):
|
||||
_name = "study.status"
|
||||
|
||||
name = fields.Char("Name")
|
||||
value = fields.Char("Value")
|
||||
sequence = fields.Integer("Sequence")
|
||||
|
||||
|
@@ -7,6 +7,8 @@ from odoo.exceptions import UserError
|
||||
class StudyStudy(models.Model):
|
||||
_name = "study.study"
|
||||
|
||||
_inherit = ['mail.thread']
|
||||
|
||||
title = fields.Char("Nom de l'étude")
|
||||
name = fields.Char("Acronyme")
|
||||
|
||||
@@ -24,7 +26,7 @@ class StudyStudy(models.Model):
|
||||
ppc_reference = fields.Char("Référence Comité de Protection des Personnes")
|
||||
version = fields.Char("Version")
|
||||
phase = fields.Many2one("study.phase", string="Phase")
|
||||
status = fields.Many2one("study.status", string="Status")
|
||||
status = fields.Many2one("study.status", string="Status de la publication")
|
||||
|
||||
site = fields.Many2one("res.partner", string="Lieu de l'étude")
|
||||
author = fields.Many2one("study.author", string="Platforme technique d'étude")
|
||||
|
Reference in New Issue
Block a user