From: Sébastien CHAZALLET Date: Thu, 30 May 2013 09:53:34 +0000 (+0200) Subject: Refonte de la notion de phase 2/3 X-Git-Url: http://git.inspyration.org/?p=OpenERP%2Fcmmi.git;a=commitdiff_plain;h=d419e5f26f1611dbbd9cb62050f6af61df99d7c0 Refonte de la notion de phase 2/3 --- diff --git a/projet.py b/projet.py index 611c422..96e0502 100644 --- a/projet.py +++ b/projet.py @@ -310,6 +310,8 @@ class ProjetMoa(osv.Model): class ProjetPhase(osv.Model): _name = "cmmi.projet.phase" + _description = "Linking of phases to projects / Rattachement des Phases aux projets" + def _get_name(self, cr, uid, ids, field_name=None, arg=None, context=None): if isinstance(ids, (int, long)): ids = [ids] @@ -321,13 +323,13 @@ class ProjetPhase(osv.Model): type='char', store=True, string="Nom de la phase"), - "selectionne": fields.boolean(string="Phase sélectionnée ?"), + "phase_id": fields.many2one("cmmi.phase", + string="Phase", + required=True), "projet_id": fields.many2one("cmmi.projet", string="Projet", required=True), - "phase_id": fields.many2one("cmmi.phase.type", - string="Phase", - required=True), + "selectionne": fields.boolean(string="Phase sélectionnée ?"), }