Correction projet
[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     }