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

index f26bc11..2341845 100644 (file)
@@ -2,4 +2,6 @@ import mo
 import axes
 import phase
 import description
+import partner
 import projet
+import evolution
index fe8149f..bcae1d4 100644 (file)
--- a/projet.py
+++ b/projet.py
@@ -55,75 +55,3 @@ class Projet(osv.Model):
         "main_structure": fields.many2one("projet.structure",
                                           string="Structure principale"),
     }
-
-
-class Evolution(osv.Model):
-    _name = "projet.evolution"
-
-    _priorites = [("incontournable", "Incontournable"),
-                  ("necessaire", "Nécéssaire"),
-                  ("utile", "Utile")]
-
-    _statuts = [("cree", "Crée"), ("encours", "En cours"),
-                ("termine", "Terminé"), ("abandonne", "Abandonné"),
-                ("suspendu", "Suspendu")]
-
-    _columns = {
-        "pid": fields.integer(string="PID"),
-        "name": fields.char(string="Title", size=64, required=True),
-        "description": fields.text(string="Description"),
-        "objectif": fields.text(string="Objectif"),
-        "commentaire": fields.text(string="Commentaire"),
-        "keywords": fields.text(string="Mots clés"),
-        "priorite": fields.selection(_priorites, string="Priorité"),
-        "statut": fields.selection(_statuts, string="Statut"),
-        "charges": fields.one2many("projet.charge",
-                                   "evolution_id",
-                                   string="Charges"),
-        "module_id": fields.many2one("projet.module",
-                                     string="Modules"),
-        "chantier_id": fields.many2one("projet.chantier",
-                                    string="Chantier"),
-        "palier_id": fields.many2one("projet.palier",
-                                     string="Palier"),
-        "phase_id": fields.many2one("projet.phase",
-                                    string="Phase"),
-        "projet_id": fields.many2one("projet.projet",
-                                     string="Projet"),
-    }
-
-
-class Teammember(osv.Model):
-    _name = "projet.teammember"
-
-    _inherit = "res.partner"
-
-    _columns = {
-        "projets": fields.many2many("projet.projet",
-                                    "projet_projet_teammember_rel",
-                                    "team_members",
-                                    string="Projets"),
-        "charges": fields.one2many("projet.projet",
-                                   "team_members",
-                                   string="Charges"),
-    }
-
-
-class Charge(osv.Model):
-    _name = "projet.charge"
-
-    _columns = {
-        "name": fields.char(string="Title", size=64, required=True),
-        "description": fields.text(string="Description"),
-        "teammember_id": fields.many2one("projet.teammember",
-                                         string="Team Member",
-                                         required=True),
-        "phase_id": fields.many2one("projet.phase",
-                                    string="Phase",
-                                    required=True),
-        "evolution_id": fields.many2one("projet.evolution",
-                                    string="Evolution",
-                                    required=True),
-        "mo_id": fields.many2one("projet.mo",
-                                 string="Mo"),
-    }