From 1b9bd24196ccb0e0d755aa355c20918b7664f74a Mon Sep 17 00:00:00 2001 From: "Kuldeep Joshi (OpenERP)" Date: Mon, 21 May 2012 16:06:23 +0530 Subject: [PATCH] [IMP] remover message_ids field bzr revid: kjo@tinyerp.com-20120521103623-c726tja4jwf6g6y3 --- addons/crm/crm_lead.py | 1 - addons/crm/crm_meeting.py | 1 - addons/crm/crm_phonecall.py | 1 - addons/crm_claim/crm_claim.py | 1 - addons/crm_fundraising/crm_fundraising.py | 1 - addons/crm_helpdesk/crm_helpdesk.py | 1 - addons/hr_recruitment/hr_recruitment.py | 1 - addons/project_issue/project_issue.py | 1 - 8 files changed, 8 deletions(-) diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py index ab33cb7c5e0..a0fce25f0d1 100644 --- a/addons/crm/crm_lead.py +++ b/addons/crm/crm_lead.py @@ -180,7 +180,6 @@ class crm_lead(crm_case, osv.osv): \nIf the case is in progress the state is set to \'Open\'.\ \nWhen the case is over, the state is set to \'Done\'.\ \nIf the case needs to be reviewed then the state is set to \'Pending\'.'), - 'message_ids': fields.one2many('mail.message', 'res_id', 'Messages', domain=[('model','=',_name)]), 'subjects': fields.function(_get_email_subject, fnct_search=_history_search, string='Subject of Email', type='char', size=64), # Only used for type opportunity diff --git a/addons/crm/crm_meeting.py b/addons/crm/crm_meeting.py index 70f1d7bff1e..a66a7953a45 100644 --- a/addons/crm/crm_meeting.py +++ b/addons/crm/crm_meeting.py @@ -66,7 +66,6 @@ class crm_meeting(crm_base, osv.osv): 'event_id', 'attendee_id', 'Attendees', states={'done': [('readonly', True)]}), 'date_closed': fields.datetime('Closed', readonly=True), 'date_deadline': fields.datetime('Deadline', states={'done': [('readonly', True)]}), - 'message_ids': fields.one2many('mail.message', 'res_id', 'Messages', domain=[('model','=',_name)]), 'state': fields.selection([('open', 'Confirmed'), ('draft', 'Unconfirmed'), ('cancel', 'Cancelled'), diff --git a/addons/crm/crm_phonecall.py b/addons/crm/crm_phonecall.py index e869c2a890a..3b2ed7685c5 100644 --- a/addons/crm/crm_phonecall.py +++ b/addons/crm/crm_phonecall.py @@ -72,7 +72,6 @@ class crm_phonecall(crm_base, osv.osv): 'date_closed': fields.datetime('Closed', readonly=True), 'date': fields.datetime('Date'), 'opportunity_id': fields.many2one ('crm.lead', 'Lead/Opportunity'), - 'message_ids': fields.one2many('mail.message', 'res_id', 'Messages', domain=[('model','=',_name)]), } def _get_default_state(self, cr, uid, context=None): diff --git a/addons/crm_claim/crm_claim.py b/addons/crm_claim/crm_claim.py index fa19af177a6..8cc0f225bb3 100644 --- a/addons/crm_claim/crm_claim.py +++ b/addons/crm_claim/crm_claim.py @@ -80,7 +80,6 @@ class crm_claim(crm.crm_case, osv.osv): \nIf the case is in progress the state is set to \'Open\'.\ \nWhen the case is over, the state is set to \'Done\'.\ \nIf the case needs to be reviewed then the state is set to \'Pending\'.'), - 'message_ids': fields.one2many('mail.message', 'res_id', 'Messages', domain=[('model','=',_name)]), } _defaults = { diff --git a/addons/crm_fundraising/crm_fundraising.py b/addons/crm_fundraising/crm_fundraising.py index 64c5b69b7bf..9a45414b208 100644 --- a/addons/crm_fundraising/crm_fundraising.py +++ b/addons/crm_fundraising/crm_fundraising.py @@ -73,7 +73,6 @@ class crm_fundraising(crm.crm_case, osv.osv): \nIf the case is in progress the state is set to \'Open\'.\ \nWhen the case is over, the state is set to \'Done\'.\ \nIf the case needs to be reviewed then the state is set to \'Pending\'.'), - 'message_ids': fields.one2many('mail.message', 'res_id', 'Messages', domain=[('model','=',_name)]), } diff --git a/addons/crm_helpdesk/crm_helpdesk.py b/addons/crm_helpdesk/crm_helpdesk.py index 840fb4423b9..989ba30fbf9 100644 --- a/addons/crm_helpdesk/crm_helpdesk.py +++ b/addons/crm_helpdesk/crm_helpdesk.py @@ -77,7 +77,6 @@ class crm_helpdesk(crm.crm_case, osv.osv): \nIf the case is in progress the state is set to \'Open\'.\ \nWhen the case is over, the state is set to \'Done\'.\ \nIf the case needs to be reviewed then the state is set to \'Pending\'.'), - 'message_ids': fields.one2many('mail.message', 'res_id', 'Messages', domain=[('model','=',_name)]), } _defaults = { diff --git a/addons/hr_recruitment/hr_recruitment.py b/addons/hr_recruitment/hr_recruitment.py index 17a2d11fd0e..9126e8855f0 100644 --- a/addons/hr_recruitment/hr_recruitment.py +++ b/addons/hr_recruitment/hr_recruitment.py @@ -134,7 +134,6 @@ class hr_applicant(crm.crm_case, osv.osv): _columns = { 'name': fields.char('Name', size=128, required=True), - 'message_ids': fields.one2many('mail.message', 'res_id', 'Messages', domain=[('model','=',_name)]), 'active': fields.boolean('Active', help="If the active field is set to false, it will allow you to hide the case without removing it."), 'description': fields.text('Description'), 'email_from': fields.char('Email', size=128, help="These people will receive email."), diff --git a/addons/project_issue/project_issue.py b/addons/project_issue/project_issue.py index 5a792ac4d28..221d55ae23a 100644 --- a/addons/project_issue/project_issue.py +++ b/addons/project_issue/project_issue.py @@ -211,7 +211,6 @@ class project_issue(crm.crm_case, osv.osv): multi='compute_day', type="integer", help="Difference in days between last action and current date"), 'color': fields.integer('Color Index'), 'user_email': fields.related('user_id', 'user_email', type='char', string='User Email', readonly=True), - 'message_ids': fields.one2many('mail.message', 'res_id', 'Messages', domain=[('model','=',_name)]), 'date_action_last': fields.datetime('Last Action', readonly=1), 'date_action_next': fields.datetime('Next Action', readonly=1), 'progress': fields.function(_hours_get, string='Progress (%)', multi='hours', group_operator="avg", help="Computed as: Time Spent / Total Time.",