[FIX] marketing_campaign: workitem.process_all() must respect campaign states

bzr revid: odo@openerp.com-20110311104831-ewujjdgwg1jd5qhc
This commit is contained in:
Olivier Dony 2011-03-11 11:48:31 +01:00
parent 02a703770a
commit 599d655465
1 changed files with 1 additions and 1 deletions

View File

@ -723,7 +723,7 @@ class marketing_campaign_workitem(osv.osv):
# manual states are not processed automatically
continue
while True:
domain = [('state', '=', 'todo'), ('date', '!=', False)]
domain = [('campaign_id', '=', camp.id), ('state', '=', 'todo'), ('date', '!=', False)]
if camp.mode in ('test_realtime', 'active'):
domain += [('date','<=', time.strftime('%Y-%m-%d %H:%M:%S'))]