[FIX] marketing_campaign: auto transitions are also directly processed in manual mode
bzr revid: chs@openerp.com-20100702085719-isca5a7nmwa0j31i
This commit is contained in:
parent
0042fdf5c6
commit
0f03d60fdf
|
@ -587,13 +587,12 @@ class marketing_campaign_workitem(osv.osv):
|
|||
# test test_realtime manual normal (active)
|
||||
# time Y N N N
|
||||
# signal N N N N
|
||||
# auto Y Y N Y
|
||||
# auto Y Y Y Y
|
||||
#
|
||||
|
||||
run = False
|
||||
if transition.trigger != 'signal' and campaign_mode != 'manual':
|
||||
if transition.trigger == 'auto' or campaign_mode == 'test':
|
||||
run = True
|
||||
run = transition.trigger == 'auto' \
|
||||
or (transition.trigger == 'time' \
|
||||
and campaign_mode == 'test')
|
||||
if run:
|
||||
new_wi = self.browse(cr, uid, wi_id, context)
|
||||
self._process_one(cr, uid, new_wi, context)
|
||||
|
|
Loading…
Reference in New Issue