Correction projet
authorSébastien CHAZALLET <s.chazallet@gmail.com>
Fri, 31 May 2013 06:50:07 +0000 (08:50 +0200)
committerSébastien CHAZALLET <s.chazallet@gmail.com>
Fri, 31 May 2013 06:50:07 +0000 (08:50 +0200)
demo/projet.xml
projet.py

index a145835..6075a04 100644 (file)
         </record>
 
 
+        <record id="projet_projet_1" model="cmmi.projet">
+            <field name="name">Projet of the doom</field>
+             <field name="description">Ici c'est la description de ce super projet !</field><!--
+             <field name="moe_id" ref="cmmi_moe_0" />
+             <field name="moa_id" ref="cmmi_moa_0" />-->
+         </record>
+
+
     <!--
        Resource: projet.projet_domaine_rel
     -->
index 80ba871..55e9b2d 100644 (file)
--- a/projet.py
+++ b/projet.py
@@ -112,7 +112,7 @@ class Projet(osv.Model):
         project_id = osv.Model.create(self, cr, uid, vals, context=context)
 
         # Récupération des ids de toutes les phases
-        phase_model = self.pool.get("cmmi.phase.type")
+        phase_model = self.pool.get("cmmi.phase")
         phases_ids = phase_model.search(cr, uid, [])
 
         # Création des relations