Browse Source

Oups, fix my previous commit.

pull/7/head
Alexis de Lattre 12 years ago
parent
commit
7855302227
  1. 4
      asterisk_click2dial/wizard/open_calling_partner.py

4
asterisk_click2dial/wizard/open_calling_partner.py

@ -48,9 +48,9 @@ class wizard_open_calling_partner(osv.osv_memory):
'''Thanks to the default_get method, we are able to query Asterisk and
get the corresponding partner when we launch the wizard'''
res = {}
# calling_number = self.pool.get('asterisk.server')._get_calling_number(cr, uid, context=context)
calling_number = self.pool.get('asterisk.server')._get_calling_number(cr, uid, context=context)
#To test the code without Asterisk server
calling_number = "0141981242"
#calling_number = "0141981242"
if calling_number:
res['calling_number'] = calling_number
# We match only on the end of the phone number

Loading…
Cancel
Save