[IMP] add created/updated fields in study + change progress status relation
This commit is contained in:
@@ -13,12 +13,12 @@ class StudyStudy(models.Model):
|
||||
|
||||
period_start = fields.Date("Début de l'étude")
|
||||
period_end = fields.Date("Fin de l'étude")
|
||||
progress_status = fields.Many2one("study.progress.status", string="Avancement de l'étude")
|
||||
|
||||
progress_status_id = fields.Many2one("study.progress.status", string="Avancement de l'étude") #should be computed to actual progress status
|
||||
progress_status = fields.One2many("study.progress.status", "study_id", "All progress status")
|
||||
|
||||
description_summary = fields.Char("Brève description de l'étude")
|
||||
description = fields.Text("Description de l'étude")
|
||||
keyword = fields.Many2one("study.keyword", string="Mots-clés")
|
||||
keywords = fields.Many2many("study.keyword", string="Mots-clés")
|
||||
primary_purpose_type = fields.Many2one("study.purpose.type", string="Objectif principal")
|
||||
part_of = fields.Many2one("study.study", string="Fait partie de")
|
||||
version = fields.Char("Version")
|
||||
@@ -52,4 +52,7 @@ class StudyStudy(models.Model):
|
||||
region = fields.Many2many("study.region", string="Zones géographiques étudiées")
|
||||
|
||||
|
||||
note = fields.Text("Annotations")
|
||||
note = fields.Text("Annotations")
|
||||
|
||||
created = fields.Datetime('Created')
|
||||
updated = fields.Datetime('Updated')
|
@@ -10,7 +10,7 @@
|
||||
<field name="name"/>
|
||||
<field name="period_start"/>
|
||||
<field name="period_end"/>
|
||||
<field name="progress_status"/>
|
||||
<field name="progress_status_id"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
@@ -41,7 +41,7 @@
|
||||
<group name="study_status_left">
|
||||
<field name="period_start" />
|
||||
<field name="period_end" />
|
||||
<field name="progress_status" />
|
||||
<field name="progress_status_id" />
|
||||
</group>
|
||||
<group name="study_status_right">
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
<group name="description_left">
|
||||
<field name="description_summary" />
|
||||
<field name="description" />
|
||||
<field name="keyword" />
|
||||
<field name="keywords" widget="many2many_tags" />
|
||||
</group>
|
||||
<group name="description_right">
|
||||
<field name="primary_purpose_type" />
|
||||
|
Reference in New Issue
Block a user