Rajout d'un champ 'demandeur' pour une évolution
authorAlicia FLOREZ <alicflorez@gmail.com>
Fri, 3 May 2013 15:58:58 +0000 (17:58 +0200)
committerAlicia FLOREZ <alicflorez@gmail.com>
Fri, 3 May 2013 15:58:58 +0000 (17:58 +0200)
evolution.py
views/projet.xml

index 9ceff4f..22759f0 100644 (file)
@@ -8,6 +8,10 @@ from openerp.osv import osv, fields
 class Evolution(osv.Model):
     _name = "cmmi.evolution"
 
+    _domains = {
+        'human': [('is_company', '=', "False")],
+    }
+
     _priorites = [("incontournable", "Incontournable"),
                   ("necessaire", "Nécéssaire"),
                   ("utile", "Utile")]
@@ -38,6 +42,9 @@ class Evolution(osv.Model):
                                     string="Phase"),
         "projet_id": fields.many2one("cmmi.projet",
                                      string="Projet"),
+        "demandeur": fields.many2one("cmmi.partner.teammember",
+                                     string="Demandeur",
+                                     domain=_domains['human']),
     }
 
 
index 0de0ff9..223e34b 100644 (file)
                         <notebook colspan="4">
                             <page string="Détails">
                                 <group colspan="4" col="1">
+                                    <field name="demandeur" />
                                     <field name="description" />
                                     <field name="objectif" />
                                     <field name="commentaire" />