From ab04d3bf068a968db2acc00fb36cef74077582a6 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Fri, 20 Aug 2010 13:43:37 +0200 Subject: [PATCH] [FIX] marketing_campaign: prevent duplication of campaign until bug in server is fixed bzr revid: odo@openerp.com-20100820114337-j3611s7k4xo4wkk9 --- addons/marketing_campaign/marketing_campaign.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addons/marketing_campaign/marketing_campaign.py b/addons/marketing_campaign/marketing_campaign.py index c1674f85cc3..d9b87e91347 100644 --- a/addons/marketing_campaign/marketing_campaign.py +++ b/addons/marketing_campaign/marketing_campaign.py @@ -203,6 +203,10 @@ Normal - the campaign runs normally and automatically sends all emails and repor return record return None + # prevent duplication until the server properly duplicates several levels of nested o2m + def copy(self, cr, uid, id, default=None, context=None): + raise osv.except_osv("Operation not supported", "Sorry, campaign duplication is not supported at the moment.") + marketing_campaign() class marketing_campaign_segment(osv.osv):