Browse Source

Add 'external_dependencies' in __openerp__.py

Remove unneeded imports
pull/7/head
Alexis de Lattre 11 years ago
parent
commit
d83ecd62bf
  1. 1
      asterisk_click2dial/__openerp__.py
  2. 10
      asterisk_click2dial_crm/asterisk_click2dial_crm.py

1
asterisk_click2dial/__openerp__.py

@ -51,6 +51,7 @@ A detailed documentation for this module is available on the Akretion Web site :
'author': 'Akretion',
'website': 'http://www.akretion.com/',
'depends': ['base'],
'external_dependencies': {'python': ['phonenumbers', 'Asterisk']},
'data': [
'asterisk_server_view.xml',
'res_users_view.xml',

10
asterisk_click2dial_crm/asterisk_click2dial_crm.py

@ -24,18 +24,8 @@
##############################################################################
from openerp.osv import osv, fields
# Lib required to print logs
import logging
# Lib to translate error messages
from openerp.tools.translate import _
# Lib for phone number reformating -> pip install phonenumbers
import phonenumbers
# Lib py-asterisk from http://code.google.com/p/py-asterisk/
# We need a version which has this commit : http://code.google.com/p/py-asterisk/source/detail?r=8d0e1c941cce727c702582f3c9fcd49beb4eeaa4
# so a version after Nov 20th, 2012
from Asterisk import Manager
_logger = logging.getLogger(__name__)
class res_partner(osv.osv):

Loading…
Cancel
Save