From 2242376b8bb295f282ac2d7e1f798705e9df01a7 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Fri, 2 Jul 2010 17:12:14 +0200 Subject: [PATCH 1/4] [IMP] marketing_campaign: remove unneeded _inherit bzr revid: chs@openerp.com-20100702151214-rfj6it5rr053hpem --- addons/marketing_campaign/marketing_campaign.py | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/addons/marketing_campaign/marketing_campaign.py b/addons/marketing_campaign/marketing_campaign.py index dbb547af410..3b72f183f89 100644 --- a/addons/marketing_campaign/marketing_campaign.py +++ b/addons/marketing_campaign/marketing_campaign.py @@ -666,7 +666,7 @@ class marketing_campaign_workitem(osv.osv): 'type': 'ir.actions.act_window', 'target': 'new', 'nodestroy':True, - 'context': "{'template_id':%d,'rel_model_ref':%d}"% + 'context': "{'template_id':%d,'default_rel_model_ref':%d}"% (wi_obj.activity_id.email_template_id.id, wi_obj.res_id) } @@ -691,21 +691,6 @@ class email_template(osv.osv): } email_template() -class email_template_preview(osv.osv_memory): - _inherit = "email_template.preview" - - def _default_rel_model(self, cr, uid, context=None): - if 'rel_model_ref' in context : - return context['rel_model_ref'] - else : - return False - - _defaults = { - 'rel_model_ref' : _default_rel_model - } - -email_template_preview() - class report_xml(osv.osv): _inherit = 'ir.actions.report.xml' def search(self, cr, uid, args, offset=0, limit=None, order=None, context=None, count=False): From 8a7fe0ed1be567c5d0370873b0358abd8d61bcff Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Fri, 2 Jul 2010 18:31:01 +0200 Subject: [PATCH 2/4] [IMP] crm, mail_gateway: - added display and tracking of CC for mail history, also changed long headers to fields.text (no arbitrary limit) - improved crm views - made _history() method of mailgate.thread public - some additional cleanup bzr revid: odo@openerp.com-20100702163101-tiapsrpnf4hli6il --- addons/crm/crm.py | 2 +- addons/crm/crm_lead_view.xml | 11 +-- addons/crm/crm_opportunity_view.xml | 10 +-- addons/crm/wizard/crm_forward_to_partner.py | 2 +- addons/crm/wizard/crm_lead_to_opportunity.py | 2 +- addons/crm/wizard/crm_send_email.py | 24 +++---- addons/mail_gateway/mail_gateway.py | 72 +++++++++++--------- addons/mail_gateway/mail_gateway_view.xml | 30 ++++---- 8 files changed, 80 insertions(+), 73 deletions(-) diff --git a/addons/crm/crm.py b/addons/crm/crm.py index 882cb269d19..5bd0e01c113 100644 --- a/addons/crm/crm.py +++ b/addons/crm/crm.py @@ -214,7 +214,7 @@ class crm_case(object): def _history(self, cr, uid, cases, keyword, history=False, subject=None, email=False, details=None, email_from=False, message_id=False, attach=[], context={}): mailgate_pool = self.pool.get('mailgate.thread') - return mailgate_pool._history(cr, uid, cases, keyword, history=history,\ + return mailgate_pool.history(cr, uid, cases, keyword, history=history,\ subject=subject, email=email, \ details=details, email_from=email_from,\ message_id=message_id, attach=attach, \ diff --git a/addons/crm/crm_lead_view.xml b/addons/crm/crm_lead_view.xml index 60b682ae54a..c429810e31f 100644 --- a/addons/crm/crm_lead_view.xml +++ b/addons/crm/crm_lead_view.xml @@ -157,16 +157,17 @@ - +
- + - - + + + @@ -177,7 +178,7 @@