from openerp.osv import osv, fields
-class Type_Phase(osv.Model):
- _name = "projet.type_phase"
+class TypePhase(osv.Model):
+ _name = "cmmi.phase.type"
_statuts = [("actif", "Actif"), ("inactif", "Inactif")]
class Phase(osv.Model):
- _name = "projet.phase"
+ _name = "cmmi.phase"
_statuts = [("actif", "Actif"), ("inactif", "Inactif")]
"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",
+ "type_phase_id": fields.many2one("cmmi.phase.type",
string="Type phase"),
- "projet_id": fields.many2one("projet.projet",
- string="Projet",
- required=True),
- "charges": fields.one2many("projet.charge",
+ "charges": fields.one2many("cmmi.evolution.charge",
"phase_id",
string="Charges"),
- "evolutions": fields.one2many("projet.evolution",
+ "evolutions": fields.one2many("cmmi.evolution",
"phase_id",
string="Evolutions"),
- "palier_id": fields.many2one("projet.palier",
+ "palier_id": fields.many2one("cmmi.axes.palier",
string="Palier"),
}