X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=wizards%2Fmoe.py;h=a54168edf182593fda189e5ce75db6073ed72663;hb=442727d096ad65edb81c462f5a673d3b6a460602;hp=b5af8937c92277450f712f00a0732d08a223fd49;hpb=7c1c1a92efa74fe2b4c5284325bd9166309d9149;p=OpenERP%2Fcmmi.git diff --git a/wizards/moe.py b/wizards/moe.py index b5af893..a54168e 100644 --- a/wizards/moe.py +++ b/wizards/moe.py @@ -37,7 +37,7 @@ class ProjetMoeWizard(osv.TransientModel): context=context )])) - # recherche des domaines autres que ceux déjà sélectionnés + # recherche des moes autres que ceux déjà sélectionnés moe_ids = model_base.search( cr, uid, @@ -94,16 +94,20 @@ class ProjetMoeWizard(osv.TransientModel): "moe_id": result["moe_id"], }, context=context) - - # 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], - '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], + # 'context': context, + # } + #----------------------------------------------------------------------- _columns = { "main": fields.boolean(string="MOE principale ?"),