From de7e7721fe88fb9f5a653b5a2e303ae2f246c9ab Mon Sep 17 00:00:00 2001 From: Alicia FLOREZ Date: Fri, 19 Apr 2013 09:30:36 +0200 Subject: [PATCH] =?utf8?q?Rajout=20de=20champs=20=C3=A0=20la=20classe=20proj?= =?utf8?q?et.palier?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- projet.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/projet.py b/projet.py index 1e2bca8..4972e58 100644 --- a/projet.py +++ b/projet.py @@ -142,6 +142,7 @@ class Phase(osv.Model): _columns = { "name": fields.char(string="Title", size=64, required=True), "description": fields.text(string="Description"), + "statut": fields.selection(_statuts, string="Statut"), "projet_id": fields.many2one("projet.projet", string="Projet", required=True), @@ -208,9 +209,13 @@ class Chantier(osv.Model): class Palier(osv.Model): _name = "projet.palier" + _types_palier = [("normal", "Normal"), ("exceptionnel", "Exceptionnel"), ("correctif", "Correctif"), ("autre", "Autre")] + + _inherit = "projet.qqch" _columns = { + "type_palier": fields.selection(_types_palier, string="Type"), "projet_id": fields.many2one("projet.projet", string="Projet", required=True), -- 1.7.10.4