From bd8a7038173bf6fe13b7f888ca13d318b9d4b7f9 Mon Sep 17 00:00:00 2001 From: Alicia FLOREZ Date: Thu, 18 Apr 2013 17:19:35 +0200 Subject: [PATCH] =?utf8?q?Rajout=20de=20champs=20=C3=A0=20la=20classe=20proj?= =?utf8?q?et.domaine?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- projet.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/projet.py b/projet.py index ed13c5e..812c08e 100644 --- a/projet.py +++ b/projet.py @@ -95,10 +95,16 @@ class Module(osv.Model): class Domaine(osv.Model): _name = "projet.domaine" + _statuts = [("actif", "Actif"), + ("inactif", "Inactif")] + _columns = { "name": fields.char(string="Title", size=64, required=True), + "code": fields.char(string="Code", size=8), "description": fields.text(string="Description"), + "ordre": fields.integer(string="Ordre"), "parent_id": fields.many2one("projet.domaine", string="Parent_id"), + "statut": fields.selection(_statuts, string="Statut"), "projets": fields.many2many("projet.projet", "projet_projet_structure_rel", "domaines", -- 1.7.10.4