From cd8d78510a080de83a6626b77d5a1e67bda3cbf5 Mon Sep 17 00:00:00 2001 From: "sbh (Open ERP)" Date: Tue, 19 Jan 2010 10:55:39 +0530 Subject: [PATCH] [IMP]crm: changed the category object name and remove the view bzr revid: sbh@tinyerp.com-20100119052539-uw5in4cab6uakt8q --- addons/crm/crm_meeting.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/crm/crm_meeting.py b/addons/crm/crm_meeting.py index 30db4a12929..c1f4cbf995a 100644 --- a/addons/crm/crm_meeting.py +++ b/addons/crm/crm_meeting.py @@ -53,7 +53,7 @@ class crm_meeting(osv.osv): 'url': {'field': 'caldav_url', 'type': 'text'}, 'recurrence-id': {'field': 'recurrent_id', 'type': 'datetime'}, 'attendee': {'field': 'attendee_ids', 'type': 'many2many', 'object': 'calendar.attendee'}, - 'categories': {'field': 'categ_id', 'type': 'many2one', 'object': 'crm.meeting.categ'}, + 'categories': {'field': 'categ_id', 'type': 'many2one', 'object': 'crm.case.categ'}, 'comment': None, 'contact': None, 'exdate': {'field': 'exdate', 'type': 'datetime'}, @@ -112,7 +112,7 @@ account for mail gateway.'), 'duration': fields.function(_get_duration, method=True, \ fnct_inv=_set_duration, string='Duration'), 'categ_id': fields.many2one('crm.case.categ', 'Category', \ - domain="[('section_id','=',section_id)]", \ + domain="[('section_id','=',section_id),('object_id.model', '=', 'crm.meeting')]", \ help='Category related to the section.Subdivide the CRM cases \ independently or section-wise.'), 'description': fields.text('Your action'),