Browse Source

Fix crahes when using the Web interface (these crashes did not occur with the Gtk Client)

pull/26/head
Alexis de Lattre 12 years ago
parent
commit
47a5ce21fa
  1. 6
      asterisk_click2dial/asterisk_click2dial.py
  2. 2
      asterisk_click2dial_crm/wizard/create_crm_phonecall.py

6
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

2
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',

Loading…
Cancel
Save