From: Alicia FLOREZ Date: Fri, 24 May 2013 15:22:34 +0000 (+0200) Subject: Modification de la relation projet-phase en projet-phase.type X-Git-Url: http://git.inspyration.org/?p=OpenERP%2Fcmmi.git;a=commitdiff_plain;h=30b2c4797523153d79a0c8d6bbce5bcdb20c8a10 Modification de la relation projet-phase en projet-phase.type --- diff --git a/projet.py b/projet.py index 6dc86ed..9381694 100644 --- a/projet.py +++ b/projet.py @@ -114,7 +114,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") + phase_model = self.pool.get("cmmi.phase.type") phases_ids = phase_model.search(cr, uid, []) # Création des relations @@ -327,7 +327,7 @@ class ProjetPhase(osv.Model): "projet_id": fields.many2one("cmmi.projet", string="Projet", required=True), - "phase_id": fields.many2one("cmmi.phase", + "phase_id": fields.many2one("cmmi.phase.type", string="Phase", required=True), } \ No newline at end of file