diff --git a/addons/crm/crm_phonecall.py b/addons/crm/crm_phonecall.py index be92fcad2bf..5b06493c60e 100644 --- a/addons/crm/crm_phonecall.py +++ b/addons/crm/crm_phonecall.py @@ -32,14 +32,6 @@ class crm_phonecall(osv.osv): _order = "id desc" _inherit = ['mail.thread'] - def _meeting_count(self, cr, uid, ids, field_name, arg, context=None): - res = dict(map(lambda x: (x,0), ids)) - try: - for meeting in self.browse(cr, uid, ids, context=context): - res[meeting.id] = len(meeting.meeting_ids) - except: - pass - return res _columns = { 'date_action_last': fields.datetime('Last Action', readonly=1), 'date_action_next': fields.datetime('Next Action', readonly=1), @@ -74,8 +66,6 @@ class crm_phonecall(osv.osv): 'date_closed': fields.datetime('Closed', readonly=True), 'date': fields.datetime('Date'), 'opportunity_id': fields.many2one ('crm.lead', 'Lead/Opportunity'), - 'meeting_ids': fields.one2many('calendar.event', 'phonecall_id', 'Phonecalls'), - 'meeting_count': fields.function(_meeting_count, string='# Meetings', type='integer'), } def _get_default_state(self, cr, uid, context=None):