Projet - Rajout de valeurs par défaut pour 'use_chantier' et 'use_palier'
authorAlicia FLOREZ <alicflorez@gmail.com>
Tue, 4 Jun 2013 15:51:13 +0000 (17:51 +0200)
committerAlicia FLOREZ <alicflorez@gmail.com>
Tue, 4 Jun 2013 15:51:13 +0000 (17:51 +0200)
projet.py

index 8bfce87..6fd936e 100644 (file)
--- a/projet.py
+++ b/projet.py
@@ -130,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)