Browse Source

Merge pull request #34 from akretion/8.0-fix-old-new-api

FIX old/new API call
pull/37/head
Alexis de Lattre 10 years ago
parent
commit
2200e38ac2
  1. 3
      asterisk_click2dial/asterisk_click2dial.py

3
asterisk_click2dial/asterisk_click2dial.py

@ -404,7 +404,8 @@ class phone_common(orm.AbstractModel):
user, ast_server, ast_manager = \ user, ast_server, ast_manager = \
self.pool['asterisk.server']._connect_to_asterisk( self.pool['asterisk.server']._connect_to_asterisk(
cr, uid, context=context) cr, uid, context=context)
ast_number = self.convert_to_dial_number(erp_number)
ast_number = self.convert_to_dial_number(
cr, uid, erp_number, context=context)
# Add 'out prefix' # Add 'out prefix'
if ast_server.out_prefix: if ast_server.out_prefix:
_logger.debug('Out prefix = %s' % ast_server.out_prefix) _logger.debug('Out prefix = %s' % ast_server.out_prefix)

Loading…
Cancel
Save