Correction du bug avec les wizards
[OpenERP/cmmi.git] / wizards / domaine.py
index 29b5c5d..49ad82a 100644 (file)
@@ -101,18 +101,20 @@ class ProjetDomaineWizard(osv.TransientModel):
             }, context=context)
 
         # Fermer simplement la fenêtre
-        #return {'type': 'ir.actions.act_window_close'}
-
-        # Renvoi vers la vue du modèle
-        return {
-            "type": 'ir.actions.act_window',
-            "res_model": "cmmi.projet",
-            'view_type': 'form',
-            'view_mode': 'form',
-            'res_id': result["project_id"][0],
-            #'target': 'new', = pop-up
-            'context': context,
-        }
+        return {'type': 'ir.actions.act_window_close'}
+
+        #-----------------------------------------------------------------------
+        # # Renvoi vers la vue du modèle
+        # return {
+        #   "type": 'ir.actions.act_window',
+        #   "res_model": "cmmi.projet",
+        #   'view_type': 'form',
+        #   'view_mode': 'form',
+        #   'res_id': result["project_id"][0],
+        #   #'target': 'new', = pop-up
+        #   'context': context,
+        # }
+        #-----------------------------------------------------------------------
 
     _columns = {
         "main": fields.boolean(string="Domaine principal ?"),