Projet - Rajout de valeurs par défaut pour 'use_chantier' et 'use_palier'
[OpenERP/cmmi.git] / projet.py
index 1c2fc93..6fd936e 100644 (file)
--- a/projet.py
+++ b/projet.py
@@ -82,6 +82,9 @@ class Projet(osv.Model):
     _columns = {
         "name": fields.char(string="Title", size=64, required=True),
         "description": fields.text(string="Description"),
+        "use_chantier": fields.boolean(string="Utilisation de la notion de chantier ?"),
+        "use_palier": fields.boolean(string="Utilisation de la notion de palier ?"),
+
         # Backrefs
         "domains": fields.one2many("cmmi.projet.domaine",
                                     "project_id",
@@ -127,6 +130,11 @@ class Projet(osv.Model):
                                                 string="Phases sélectionnées"),
     }
 
+    _defaults = {
+        "use_chantier": True,
+        "use_palier": True,
+    }
+
 
     def create(self, cr, uid, vals, context=None):
         project_id = osv.Model.create(self, cr, uid, vals, context=context)