|
@ -316,9 +316,9 @@ class asterisk_server(orm.Model): |
|
|
return calling_party_number |
|
|
return calling_party_number |
|
|
|
|
|
|
|
|
def get_record_from_my_channel(self, cr, uid, context=None): |
|
|
def get_record_from_my_channel(self, cr, uid, context=None): |
|
|
#calling_number = self.pool['asterisk.server']._get_calling_number( |
|
|
|
|
|
# cr, uid, context=context) |
|
|
|
|
|
calling_number = "0641981246" |
|
|
|
|
|
|
|
|
calling_number = self.pool['asterisk.server']._get_calling_number( |
|
|
|
|
|
cr, uid, context=context) |
|
|
|
|
|
#calling_number = "0641981246" |
|
|
if calling_number: |
|
|
if calling_number: |
|
|
record = self.pool['phone.common'].get_record_from_phone_number( |
|
|
record = self.pool['phone.common'].get_record_from_phone_number( |
|
|
cr, uid, calling_number, context=context) |
|
|
cr, uid, calling_number, context=context) |
|
|