Ajout d'un champ charge_reel dans palier
[OpenERP/cmmi.git] / description.py
index 96516a3..f762968 100644 (file)
@@ -5,9 +5,12 @@
 from openerp.osv import osv, fields
 
 
+# ================================== MODULE ================================= #
 class Module(osv.Model):
     _name = "cmmi.description.module"
 
+    _description = "Module d'un projet."
+
     _columns = {
         "name": fields.char(string="Title", size=64, required=True),
         "description": fields.text(string="Description"),
@@ -20,20 +23,20 @@ class Module(osv.Model):
     }
 
 
+# ================================= DOMAINE ================================= #
 class Domaine(osv.Model):
     _name = "cmmi.description.domaine"
 
+    _description = "Table de reference des domaines."
+
     _statuts = [("actif", "Actif"), ("inactif", "Inactif")]
 
     _columns = {
         "name": fields.char(string="Title", size=64, required=True),
         "code": fields.char(string="Code", size=8),
         "description": fields.text(string="Description"),
-        "ordre": fields.integer(string="Ordre"),
         "parent_id": fields.many2one("cmmi.description.domaine", string="Parent_id"),
         "statut": fields.selection(_statuts, string="Statut"),
-        "projets": fields.many2many("cmmi.projet", #TODO enlever ?
-                                    string="Projets"),
     }
 
     _order = "id"