diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py index e92378785d6..7e0dc1ea36a 100644 --- a/addons/crm/crm_lead.py +++ b/addons/crm/crm_lead.py @@ -36,7 +36,6 @@ class crm_lead(osv.osv, crm_case): _order = "priority, id desc" _inherit = ['res.partner.address'] _inherits = {'mailgate.thread': 'thread_id'} - _log_create=True def _compute_day(self, cr, uid, ids, fields, args, context={}): """ diff --git a/addons/crm/crm_meeting.py b/addons/crm/crm_meeting.py index e3116ba39ca..3529e329ffa 100644 --- a/addons/crm/crm_meeting.py +++ b/addons/crm/crm_meeting.py @@ -45,7 +45,7 @@ class crm_meeting(osv.osv, crm_case): _order = "id desc" _inherit = ["calendar.event"] _inherits = {'mailgate.thread': 'thread_id'} - _log_create=True + _columns = { # From crm.case diff --git a/addons/crm/crm_phonecall.py b/addons/crm/crm_phonecall.py index 4ed59e2a5c3..29a52866907 100644 --- a/addons/crm/crm_phonecall.py +++ b/addons/crm/crm_phonecall.py @@ -32,7 +32,7 @@ class crm_phonecall(osv.osv, crm_case): _description = "Phonecall" _order = "id desc" _inherits = {'mailgate.thread': 'thread_id'} - _log_create=True + _columns = { # From crm.case diff --git a/addons/crm_claim/crm_claim.py b/addons/crm_claim/crm_claim.py index a5dfc5a30e5..6677b29151e 100644 --- a/addons/crm_claim/crm_claim.py +++ b/addons/crm_claim/crm_claim.py @@ -30,7 +30,7 @@ class crm_claim(osv.osv, crm.crm_case): _description = "Claim Cases" _order = "id desc" _inherits = {'mailgate.thread': 'thread_id'} - _log_create=True + _columns = { 'thread_id': fields.many2one('mailgate.thread', 'Thread', required=False), diff --git a/addons/crm_fundraising/crm_fundraising.py b/addons/crm_fundraising/crm_fundraising.py index 4ff7832e64f..6fb70b97a46 100644 --- a/addons/crm_fundraising/crm_fundraising.py +++ b/addons/crm_fundraising/crm_fundraising.py @@ -29,7 +29,7 @@ class crm_fundraising(osv.osv, crm.crm_case): _description = "Fund Raising Cases" _order = "id desc" _inherits = {'mailgate.thread': 'thread_id'} - _log_create=True + _columns = { 'thread_id': fields.many2one('mailgate.thread', 'Thread', required=False), diff --git a/addons/crm_helpdesk/crm_helpdesk.py b/addons/crm_helpdesk/crm_helpdesk.py index 0b14994d2b6..35de73c4471 100644 --- a/addons/crm_helpdesk/crm_helpdesk.py +++ b/addons/crm_helpdesk/crm_helpdesk.py @@ -29,7 +29,7 @@ class crm_helpdesk(osv.osv, crm.crm_case): _description = "Helpdesk Cases" _order = "id desc" _inherits = {'mailgate.thread': 'thread_id'} - _log_create=True + _columns = { 'thread_id': fields.many2one('mailgate.thread', 'Thread', required=False), diff --git a/addons/crm_profiling/crm_profiling.py b/addons/crm_profiling/crm_profiling.py index 6f61687e12d..71c494ffb94 100644 --- a/addons/crm_profiling/crm_profiling.py +++ b/addons/crm_profiling/crm_profiling.py @@ -158,7 +158,7 @@ class questionnaire(osv.osv): _name="crm_profiling.questionnaire" _description= "Questionnaire" - _log_create = True + def build_form(self, cr, uid, data, context): """ diff --git a/addons/mail_gateway/mail_gateway.py b/addons/mail_gateway/mail_gateway.py index 76b35c630ee..dbbc1e8d748 100644 --- a/addons/mail_gateway/mail_gateway.py +++ b/addons/mail_gateway/mail_gateway.py @@ -36,7 +36,7 @@ class mailgate_thread(osv.osv): _name = 'mailgate.thread' _description = 'Mailgateway Thread' _rec_name = 'thread' - + _columns = { 'thread': fields.char('Thread', size=32, required=False), 'message_ids': fields.one2many('mailgate.message', 'thread_id', 'Messages', domain=[('history', '=', True)], required=False), @@ -120,8 +120,7 @@ class mailgate_message(osv.osv): _name = 'mailgate.message' _description = 'Mailgateway Message' _order = 'date desc' - _log_create=True - + _columns = { 'name':fields.char('Message', size=64), 'thread_id':fields.many2one('mailgate.thread', 'Thread'),