[FIX] marketing_campaign: prevent duplication of campaign until bug in server is fixed

bzr revid: odo@openerp.com-20100820114337-j3611s7k4xo4wkk9
This commit is contained in:
Olivier Dony 2010-08-20 13:43:37 +02:00
parent a07a09d5d1
commit ab04d3bf06
1 changed files with 4 additions and 0 deletions

View File

@ -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):