Ajout de descriptions pour chaque classe
[OpenERP/cmmi.git] / projet.py
index 91c6e8b..1b86edf 100644 (file)
--- a/projet.py
+++ b/projet.py
@@ -9,6 +9,8 @@ class Projet(osv.Model):
 
     _name = "cmmi.projet"
 
+    _description = "Table des projets."
+
     def _get_main_domain(self, cr, uid, ids, field_name=None, arg=None, context=None):
         if type(ids) in (int, float):
             ids = [ids]
@@ -98,7 +100,7 @@ class Projet(osv.Model):
                                       "projet_id",
                                       string="Evolutions"),
         # TODO: faire un champs fonction qui renvoie uniquement les domaines sélectionnés
-        
+
         # Champs fonction rapatriant les mo ou domaine principaux
         "moe_id": fields.function(_get_main_moe,
                                   type="string",
@@ -144,10 +146,14 @@ class Projet(osv.Model):
     def action_add_moa(self, cr, uid, ids, context=None):
         pass
 
+
+
 class ProjetDomaine(osv.Model):
 
     _name = "cmmi.projet.domaine"
 
+    _description = "Rattachement des domaines a un projet."
+
     def _get_name(self, cr, uid, ids, field_name=None, arg=None, context=None):
         if isinstance(ids, (int, long)):
             ids = [ids]
@@ -204,6 +210,8 @@ class ProjetDomaine(osv.Model):
 class ProjetMoe(osv.Model):
     _name = "cmmi.projet.moe"
 
+    _description = "Rattachement des MOEs au projet."
+
     def _get_name(self, cr, uid, ids, field_name=None, arg=None, context=None):
         if isinstance(ids, (int, long)):
             ids = [ids]
@@ -256,9 +264,12 @@ class ProjetMoe(osv.Model):
         return {'value': {'main': True}}
 
 
+
 class ProjetMoa(osv.Model):
     _name = "cmmi.projet.moa"
 
+    _description = "Rattachement des MOAs a une projet."
+
     def _get_name(self, cr, uid, ids, field_name=None, arg=None, context=None):
         if isinstance(ids, (int, long)):
             ids = [ids]
@@ -311,6 +322,7 @@ class ProjetMoa(osv.Model):
         return {'value': {'main': True}}
 
 
+
 class ProjetPhase(osv.Model):
     _name = "cmmi.projet.phase"
 
@@ -337,9 +349,12 @@ class ProjetPhase(osv.Model):
     }
 
 
+
 class ProjetTeammember(osv.Model):
     _name = "cmmi.projet.teammember"
 
+    _description = "Rattachement des Team members a un projet."
+
     def _get_partner_name(self, cr, uid, ids, field_name=None, arg=None, context=None):
         if isinstance(ids, (int, long)):
             ids = [ids]