Browse Source
Use RFC 2806 : add a fax: URL and convert callto: URLs to tel: URLs
Use RFC 2806 : add a fax: URL and convert callto: URLs to tel: URLs
The wizard "Reformat phones numbers" is now extended to objects other than res.partner Update coding standard Don't use xpath in inherited views when not necessarypull/7/head
Alexis de Lattre
11 years ago
24 changed files with 238 additions and 103 deletions
-
4asterisk_click2dial/__init__.py
-
61asterisk_click2dial/asterisk_click2dial.py
-
2asterisk_click2dial/asterisk_server_view.xml
-
3asterisk_click2dial/res_partner_view.xml
-
31asterisk_click2dial/static/src/js/phone_widget.js
-
19asterisk_click2dial/static/src/xml/phone.xml
-
4asterisk_click2dial/wizard/__init__.py
-
13asterisk_click2dial/wizard/open_calling_partner.py
-
48asterisk_click2dial/wizard/reformat_all_phonenumbers.py
-
4asterisk_click2dial_crm/__init__.py
-
9asterisk_click2dial_crm/asterisk_click2dial_crm.py
-
24asterisk_click2dial_crm/crm_lead_view.xml
-
3asterisk_click2dial_crm/wizard/__init__.py
-
9asterisk_click2dial_crm/wizard/create_crm_phonecall.py
-
36asterisk_click2dial_crm/wizard/reformat_all_phonenumbers.py
-
4asterisk_click2dial_crm_claim/__init__.py
-
4asterisk_click2dial_crm_claim/asterisk_click2dial_crm_claim.py
-
3asterisk_click2dial_crm_claim/wizard/__init__.py
-
4asterisk_click2dial_crm_claim/wizard/open_calling_partner.py
-
36asterisk_click2dial_crm_claim/wizard/reformat_all_phonenumbers.py
-
4asterisk_click2dial_registration/__init__.py
-
4asterisk_click2dial_registration/asterisk_click2dial_registration.py
-
2asterisk_click2dial_registration/wizard/__init__.py
-
4asterisk_click2dial_registration/wizard/open_calling_partner.py
@ -0,0 +1,36 @@ |
|||
# -*- encoding: utf-8 -*- |
|||
############################################################################## |
|||
# |
|||
# Asterisk click2dial CRM module for OpenERP |
|||
# Copyright (c) 2013 Akretion (http://www.akretion.com) |
|||
# @author: Alexis de Lattre <alexis.delattre@akretion.com> |
|||
# |
|||
# This program is free software: you can redistribute it and/or modify |
|||
# it under the terms of the GNU Affero General Public License as published by |
|||
# the Free Software Foundation, either version 3 of the License, or |
|||
# (at your option) any later version. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU Affero General Public License for more details. |
|||
# |
|||
# You should have received a copy of the GNU Affero General Public License |
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################## |
|||
|
|||
from openerp.osv import orm |
|||
|
|||
|
|||
class reformat_all_phonenumbers(orm.TransientModel): |
|||
_inherit = "reformat.all.phonenumbers" |
|||
|
|||
def _extend_reformat_phonenumbers(self, cr, uid, context=None): |
|||
res = super(reformat_all_phonenumbers, self)._extend_reformat_phonenumbers(cr, uid, context=context) |
|||
res[self.pool['crm.lead']] = { |
|||
'allids': self.pool['crm.lead'].search(cr, uid, [], context=context), |
|||
'phonefields': ['phone', 'fax', 'mobile'], |
|||
'namefield': 'partner_name', |
|||
} |
|||
return res |
@ -0,0 +1,36 @@ |
|||
# -*- encoding: utf-8 -*- |
|||
############################################################################## |
|||
# |
|||
# Asterisk click2dial CRM Claim module for OpenERP |
|||
# Copyright (c) 2013 Akretion (http://www.akretion.com) |
|||
# @author: Alexis de Lattre <alexis.delattre@akretion.com> |
|||
# |
|||
# This program is free software: you can redistribute it and/or modify |
|||
# it under the terms of the GNU Affero General Public License as published by |
|||
# the Free Software Foundation, either version 3 of the License, or |
|||
# (at your option) any later version. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU Affero General Public License for more details. |
|||
# |
|||
# You should have received a copy of the GNU Affero General Public License |
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################## |
|||
|
|||
from openerp.osv import orm |
|||
|
|||
|
|||
class reformat_all_phonenumbers(orm.TransientModel): |
|||
_inherit = "reformat.all.phonenumbers" |
|||
|
|||
def _extend_reformat_phonenumbers(self, cr, uid, context=None): |
|||
res = super(reformat_all_phonenumbers, self)._extend_reformat_phonenumbers(cr, uid, context=context) |
|||
res[self.pool['crm.claim']] = { |
|||
'allids': self.pool['crm.claim'].search(cr, uid, [], context=context), |
|||
'phonefields': ['partner_phone'], |
|||
'namefield': 'name', |
|||
} |
|||
return res |
Write
Preview
Loading…
Cancel
Save
Reference in new issue