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 12 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)): if not isinstance(number, (str, unicode)):
_logger.warning(u"Number should be a 'str' or 'unicode' but it is a '%s'" % type(number)) _logger.warning(u"Number should be a 'str' or 'unicode' but it is a '%s'" % type(number))
return False return False
_logger.warning(u"Number should only contain digits.")
if not number.isdigit(): if not number.isdigit():
_logger.warning(u"Number should only contain digits.")
return False return False
# We try to match a phone or mobile number with the same end # 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 #! /bin/sh
# -*- encoding: utf-8 -*-
#
# Written by Alexis de Lattre <alexis.delattre@akretion.com> # Written by Alexis de Lattre <alexis.delattre@akretion.com>
# Example of wrapper for get_cid_name.py which makes sure that the # 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): def _create_open_crm_phonecall(self, cr, uid, partner_address, crm_categ, context=None):
if context is None: if context is None:
context = {} 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'}) 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) case_section_ids = self.pool.get('crm.case.section').search(cr, uid, [('member_ids', 'in', uid)], context=context)
context.update({ context.update({

Loading…
Cancel
Save