From d34afbd6695ef8383c8b81e20cd125e9bef13bff Mon Sep 17 00:00:00 2001 From: Alicia FLOREZ Date: Fri, 19 Apr 2013 10:01:13 +0200 Subject: [PATCH] =?utf8?q?Rajout=20de=20champs=20=C3=A0=20la=20classe=20proj?= =?utf8?q?et.evolution?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- projet.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/projet.py b/projet.py index 4e38c0e..f1c68d2 100644 --- a/projet.py +++ b/projet.py @@ -46,9 +46,23 @@ class Projet(osv.Model): class Evolution(osv.Model): _name = "projet.evolution" + _priorites = [("incontournable", "Incontournable"), + ("necessaire", "Nécéssaire"), + ("utile", "Utile")] + + _statuts = [("cree", "Crée"), ("encours", "En cours"), + ("termine", "Terminé"), ("abandonne", "Abandonné"), + ("suspendu", "Suspendu")] + _columns = { + "pid": fields.integer(string="PID"), "name": fields.char(string="Title", size=64, required=True), "description": fields.text(string="Description"), + "objectif": fields.text(string="Objectif"), + "commentaire": fields.text(string="Commentaire"), + "keywords": fields.text(string="Mots clés"), + "priorite": fields.selection(_priorites, string="Priorité"), + "statut": fields.selection(_statuts, string="Statut"), "charges": fields.one2many("projet.charge", "evolution_id", string="Charges"), -- 1.7.10.4