[FIX] marketing_campaign: workitem.process_all() must respect campaign states
bzr revid: odo@openerp.com-20110311104831-ewujjdgwg1jd5qhc
This commit is contained in:
parent
02a703770a
commit
599d655465
|
@ -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'))]
|
||||
|
||||
|
|
Loading…
Reference in New Issue