X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;ds=sidebyside;f=wizards%2Fmoe.py;h=a54168edf182593fda189e5ce75db6073ed72663;hb=HEAD;hp=37399bc7d622666a90e1404b19e7ae99085e8452;hpb=f9813b2c5a4e69e23270aca1123390edb84dabe9;p=OpenERP%2Fcmmi.git diff --git a/wizards/moe.py b/wizards/moe.py index 37399bc..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, @@ -62,7 +62,7 @@ class ProjetMoeWizard(osv.TransientModel): )] - def action_add_domain_to_project(self, cr, uid, ids, context=None): + def action_add_moe_to_project(self, cr, uid, ids, context=None): # Récupération du modèle utile pour écrire les données model = self.pool.get("cmmi.projet.moe") @@ -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 ?"),