From 24f5a5152eda41550491d71ce7d9290fac0a77a0 Mon Sep 17 00:00:00 2001 From: "sbh (Open ERP)" Date: Tue, 19 Jan 2010 11:17:36 +0530 Subject: [PATCH] [Fix]:Event Add the missing field of crm bzr revid: sbh@tinyerp.com-20100119054736-cvhvch4uxp5ta7d0 --- addons/event/event.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/addons/event/event.py b/addons/event/event.py index 3e4cf5566d2..cad4d7f23d1 100644 --- a/addons/event/event.py +++ b/addons/event/event.py @@ -25,6 +25,7 @@ import netsvc import pooler import tools from tools.translate import _ +from crm import crm class crm_case_log(osv.osv): _inherit = 'crm.case.log' @@ -241,6 +242,16 @@ class event_registration(osv.osv): "invoice_label":fields.char("Label Invoice",size=128,required=True), "tobe_invoiced":fields.boolean("To be Invoiced"), "invoice_id":fields.many2one("account.invoice","Invoice"), + 'date_closed': fields.datetime('Closed', readonly=True), + 'ref' : fields.reference('Reference', selection=crm._links_get, size=128), + 'ref2' : fields.reference('Reference 2', selection=crm._links_get, size=128), + 'categ_id': fields.many2one('crm.case.categ','Category', domain="[('section_id','=',section_id)]"), + 'canal_id': fields.many2one('res.partner.canal', 'Channel',help="The channels represent the different communication modes available with the customer." \ + " With each commercial opportunity, you can indicate the canall which is this opportunity source."), + 'som': fields.many2one('res.partner.som', 'State of Mind', help="The minds states allow to define a value scale which represents" \ + "the partner mentality in relation to our services.The scale has" \ + "to be created with a factor for each level from 0 (Very dissatisfied) to 10 (Extremely satisfied)."), + } _defaults = { 'nb_register': lambda *a: 1,