diff --git a/addons/crm/wizard/crm_forward_to_partner.py b/addons/crm/wizard/crm_forward_to_partner.py index 156ab3311f4..945066506d7 100644 --- a/addons/crm/wizard/crm_forward_to_partner.py +++ b/addons/crm/wizard/crm_forward_to_partner.py @@ -107,8 +107,8 @@ class crm_lead_forward_to_partner(osv.osv_memory): #TODO: ids and context are not comming res = False msg_val = '' - res_id = False # Comes from context - model = None # Comes from context + res_id = context.get('active_id') + model = context.get('active_model') model_pool = self.pool.get(model) if not res_id or not model: return res diff --git a/addons/crm/wizard/crm_forward_to_partner_view.xml b/addons/crm/wizard/crm_forward_to_partner_view.xml index 1e8c6fc8583..b6295cfa3a9 100644 --- a/addons/crm/wizard/crm_forward_to_partner_view.xml +++ b/addons/crm/wizard/crm_forward_to_partner_view.xml @@ -9,7 +9,7 @@
- +