From: Alicia FLOREZ Date: Tue, 4 Jun 2013 15:51:13 +0000 (+0200) Subject: Projet - Rajout de valeurs par défaut pour 'use_chantier' et 'use_palier' X-Git-Url: http://git.inspyration.org/?p=OpenERP%2Fcmmi.git;a=commitdiff_plain;h=3891203ecff9b5fc053bb93a2dcfc34fe9c088d4 Projet - Rajout de valeurs par défaut pour 'use_chantier' et 'use_palier' --- diff --git a/projet.py b/projet.py index 8bfce87..6fd936e 100644 --- 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)