Ajout d'un champ charge_reel dans palier
[OpenERP/cmmi.git] / phase.py
1 #-*- coding: utf8 -*-
2 '''
3 '''
4
5 from openerp.osv import osv, fields
6
7
8 # ================================== PHASE ================================== #
9 class Phase(osv.Model):
10     _name = "cmmi.phase"
11
12     _description = "Table de reference des phases."
13
14     _statuts = [("actif", "Actif"), ("inactif", "Inactif")]
15
16     _columns = {
17         "name": fields.char(string="Title", size=64, required=True),
18         "description": fields.text(string="Description"),
19         "statut": fields.selection(_statuts, string="Statut"),
20     }