class Module(osv.Model):
_name = "cmmi.description.module"
+ _description = "Module d'un projet."
+
_columns = {
"name": fields.char(string="Title", size=64, required=True),
"description": fields.text(string="Description"),
class Domaine(osv.Model):
_name = "cmmi.description.domaine"
+ _description = "Table de reference des domaines."
+
_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("cmmi.description.domaine", string="Parent_id"),
"statut": fields.selection(_statuts, string="Statut"),
- "projets": fields.many2many("cmmi.projet", #TODO enlever ?
- string="Projets"),
}
_order = "id"