X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=phase.py;h=5f97340919d73d56be6165ddae1adf25c8e55516;hb=7d91b04970f96b32a368dc885c6c2f91e4691116;hp=973657a844ede8cfd82f55558861db0dca592606;hpb=d5d9a31abbedc006ea6ef87b3a053192a6ecc396;p=OpenERP%2Fcmmi.git diff --git a/phase.py b/phase.py index 973657a..5f97340 100644 --- a/phase.py +++ b/phase.py @@ -5,38 +5,15 @@ from openerp.osv import osv, fields -class TypePhase(osv.Model): - _name = "cmmi.phase.type" - - _statuts = [("actif", "Actif"), ("inactif", "Inactif")] - - _columns = { - "name": fields.char(string="Title", size=64, required=True), - "description": fields.text(string="Description"), - "statut": fields.selection(_statuts, string="Statut"), - } - - class Phase(osv.Model): _name = "cmmi.phase" + _description = "Table de reference des phases." + _statuts = [("actif", "Actif"), ("inactif", "Inactif")] _columns = { "name": fields.char(string="Title", size=64, required=True), "description": fields.text(string="Description"), "statut": fields.selection(_statuts, string="Statut"), - "type_phase_id": fields.many2one("projet.type_phase", - string="Type phase"), - "projet_id": fields.many2one("projet.projet", - string="Projet", - required=True), - "charges": fields.one2many("projet.charge", - "phase_id", - string="Charges"), - "evolutions": fields.one2many("projet.evolution", - "phase_id", - string="Evolutions"), - "palier_id": fields.many2one("projet.palier", - string="Palier"), }