diff --git a/asterisk_click2dial/asterisk_click2dial.py b/asterisk_click2dial/asterisk_click2dial.py index 1db31f5..0b74a2f 100644 --- a/asterisk_click2dial/asterisk_click2dial.py +++ b/asterisk_click2dial/asterisk_click2dial.py @@ -575,7 +575,7 @@ class wizard_open_calling_partner(osv.osv_memory): 'type': 'ir.actions.act_window', 'nodestroy': False, # close the pop-up wizard after action 'target': 'current', - 'res_id': [record_to_open[0]], + 'res_id': record_to_open[0], } else: return False @@ -608,7 +608,7 @@ class wizard_open_calling_partner(osv.osv_memory): 'type': 'ir.actions.act_window', 'nodestroy': False, 'target': 'current', - 'res_id': [new_partner_address_id], + 'res_id': new_partner_address_id, } return action @@ -637,7 +637,7 @@ class wizard_open_calling_partner(osv.osv_memory): 'type': 'ir.actions.act_window', 'nodestroy': False, 'target': 'current', - 'res_id': [cur_wizard.to_update_partner_address_id.id] + 'res_id': cur_wizard.to_update_partner_address_id.id } return action diff --git a/asterisk_click2dial_crm/wizard/create_crm_phonecall.py b/asterisk_click2dial_crm/wizard/create_crm_phonecall.py index 34b2a1d..53bde18 100644 --- a/asterisk_click2dial_crm/wizard/create_crm_phonecall.py +++ b/asterisk_click2dial_crm/wizard/create_crm_phonecall.py @@ -63,7 +63,7 @@ class wizard_create_crm_phonecall(osv.osv_memory): 'name': partner_address.name, 'domain': [('partner_id', '=', partner_address.partner_id.id)], 'res_model': 'crm.phonecall', - 'res_id': [crm_phonecall_id], + 'res_id': crm_phonecall_id, 'view_type': 'form', 'view_mode': 'form,tree', 'type': 'ir.actions.act_window',