From d8f560be1eabad8a0de9910f57253af00f88be5c Mon Sep 17 00:00:00 2001 From: Invitu Date: Tue, 14 May 2013 09:43:30 -1000 Subject: [PATCH] [FIX] fix open crm phonecall due to alexis's last rewrite --- asterisk_click2dial_crm/asterisk_click2dial_crm.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/asterisk_click2dial_crm/asterisk_click2dial_crm.py b/asterisk_click2dial_crm/asterisk_click2dial_crm.py index 1d88558..9654075 100644 --- a/asterisk_click2dial_crm/asterisk_click2dial_crm.py +++ b/asterisk_click2dial_crm/asterisk_click2dial_crm.py @@ -39,9 +39,10 @@ _logger = logging.getLogger(__name__) class res_partner(osv.osv): - _inherit = "res.partner" + _name = 'res.partner' + _inherit = ['res.partner', 'asterisk.common'] - def dial(self, cr, uid, ids, phone_field='phone', context=None): + def action_dial(self, cr, uid, ids, context=None): ''' This method open the phone call history when the phone click2dial button of asterisk_click2dial module is pressed @@ -49,7 +50,7 @@ class res_partner(osv.osv): ''' if context is None: context = {} - super(res_partner, self).dial(cr, uid, ids, phone_field=phone_field, context=context) + super(res_partner, self).action_dial(cr, uid, ids, context=context) user = self.pool['res.users'].browse(cr, uid, uid, context=context) context['partner_id'] = ids[0] action_start_wizard = {