Browse Source

[FIX] Forgot to remove a debug line.

6.0
Alexis de Lattre 12 years ago
parent
commit
b2d701b32b
  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
partner = self.pool.get('res.partner.address').get_partner_from_phone_number(cr, uid, calling_number, context=context)

Loading…
Cancel
Save