Séparation Phase
authorSébastien CHAZALLET <s.chazallet@gmail.com>
Fri, 3 May 2013 07:11:12 +0000 (09:11 +0200)
committerSébastien CHAZALLET <s.chazallet@gmail.com>
Fri, 3 May 2013 07:11:12 +0000 (09:11 +0200)
__init__.py
projet.py

index 76a8b5f..44e8cb9 100644 (file)
@@ -1,3 +1,4 @@
 import mo
 import axes
+import phase
 import projet
index aa3151b..31d5014 100644 (file)
--- a/projet.py
+++ b/projet.py
@@ -165,43 +165,6 @@ class Teammember(osv.Model):
     }
 
 
-class Type_Phase(osv.Model):
-    _name = "projet.type_phase"
-
-    _statuts = [("actif", "Actif"), ("inactif", "Inactif")]
-
-    _columns = {
-        "name": fields.char(string="Title", size=64, required=True),
-        "description": fields.text(string="Description"),
-        "statut": fields.selection(_statuts, string="Statut"),
-    }
-
-
-class Phase(osv.Model):
-    _name = "projet.phase"
-
-    _statuts = [("actif", "Actif"), ("inactif", "Inactif")]
-
-    _columns = {
-        "name": fields.char(string="Title", size=64, required=True),
-        "description": fields.text(string="Description"),
-        "statut": fields.selection(_statuts, string="Statut"),
-        "type_phase_id": fields.many2one("projet.type_phase",
-                                         string="Type phase"),
-        "projet_id": fields.many2one("projet.projet",
-                                     string="Projet",
-                                     required=True),
-        "charges": fields.one2many("projet.charge",
-                                   "phase_id",
-                                   string="Charges"),
-        "evolutions": fields.one2many("projet.evolution",
-                                      "phase_id",
-                                      string="Evolutions"),
-        "palier_id": fields.many2one("projet.palier",
-                                     string="Palier"),
-    }
-
-
 class Charge(osv.Model):
     _name = "projet.charge"