Browse Source

Add encoding in the shell script get_cid_name_timeout.sh

Remove an unused line of code.
Move a line of code at the right place !
pull/26/head
Alexis de Lattre 11 years ago
parent
commit
23e6fa7427
  1. 2
      asterisk_click2dial/asterisk_click2dial.py
  2. 2
      asterisk_click2dial/scripts/get_cid_name_timeout.sh
  3. 2
      asterisk_click2dial_crm/wizard/create_crm_phonecall.py

2
asterisk_click2dial/asterisk_click2dial.py

@ -475,8 +475,8 @@ class res_partner_address(osv.osv):
if not isinstance(number, (str, unicode)):
_logger.warning(u"Number should be a 'str' or 'unicode' but it is a '%s'" % type(number))
return False
_logger.warning(u"Number should only contain digits.")
if not number.isdigit():
_logger.warning(u"Number should only contain digits.")
return False
# We try to match a phone or mobile number with the same end

2
asterisk_click2dial/scripts/get_cid_name_timeout.sh

@ -1,4 +1,6 @@
#! /bin/sh
# -*- encoding: utf-8 -*-
#
# Written by Alexis de Lattre <alexis.delattre@akretion.com>
# Example of wrapper for get_cid_name.py which makes sure that the

2
asterisk_click2dial_crm/wizard/create_crm_phonecall.py

@ -37,8 +37,6 @@ class wizard_create_crm_phonecall(osv.osv_memory):
def _create_open_crm_phonecall(self, cr, uid, partner_address, crm_categ, context=None):
if context is None:
context = {}
crm_phonecall_obj = self.pool.get('crm.phonecall')
categ_ids = self.pool.get('crm.case.categ').search(cr, uid, [('name','=',crm_categ)], context={'lang': 'en_US'})
case_section_ids = self.pool.get('crm.case.section').search(cr, uid, [('member_ids', 'in', uid)], context=context)
context.update({

Loading…
Cancel
Save