"phase_id": fields.many2one("projet.phase",
string="Phase"),
"projet_id": fields.many2one("projet.projet",
- string="Projet")
+ string="Projet"),
}
}
+class Type_Phase(osv.Model):
+ _name = "projet.type_phase"
+
+ _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 = "projet.phase"