Refonte de la notion de phase 1/3
[OpenERP/cmmi.git] / phase.py
1 #-*- coding: utf8 -*-
2 '''
3 '''
4
5 from openerp.osv import osv, fields
6
7
8 class Phase(osv.Model):
9     _name = "cmmi.phase"
10
11     _description = "Base phase's schema / Table de référence des phases"
12
13     _statuts = [("actif", "Actif"), ("inactif", "Inactif")]
14
15     _columns = {
16         "name": fields.char(string="Title", size=64, required=True),
17         "description": fields.text(string="Description"),
18         "statut": fields.selection(_statuts, string="Statut"),
19     }
20
21
22 #class Phase(osv.Model):
23 #    _name = "cmmi.phase"
24 #
25 #    _statuts = [("actif", "Actif"), ("inactif", "Inactif")]
26 #
27 #    _columns = {
28 #        "name": fields.char(string="Title", size=64, required=True),
29 #        "description": fields.text(string="Description"),
30 #        "statut": fields.selection(_statuts, string="Statut"),
31 #        "type_phase_id": fields.many2one("cmmi.phase.type",
32 #                                         string="Type phase"),
33 #        "charges": fields.one2many("cmmi.evolution.charge",
34 #                                   "phase_id",
35 #                                   string="Charges"),
36 #        "evolutions": fields.one2many("cmmi.evolution",
37 #                                      "phase_id",
38 #                                      string="Evolutions"),
39 #        "palier_id": fields.many2one("cmmi.axes.palier",
40 #                                     string="Palier"),
41 #    }