[FIX] Do not raise an error if the next todo isn't found to set the previous todo...
authorXavier Morel <xmo@openerp.com>
Mon, 8 Nov 2010 10:44:12 +0000 (11:44 +0100)
committerXavier Morel <xmo@openerp.com>
Mon, 8 Nov 2010 10:44:12 +0000 (11:44 +0100)
commit89af2f0c8e1fe2b8154dbae862c824ad285d3663
treecc8be16871dc841cb7bf4d33ef794decc8835853
parentbde7060598105f2db6b1a4729a0f283af2b43600
[FIX] Do not raise an error if the next todo isn't found to set the previous todo's status

The previous line hardly makes any sense, so clarification: finding the 'next' todo is based on todo states, so until we've set the state of the todo item we've just executed (aka the previous todo) it remains the 'next' todo as well.

So in order to set the previous todo's state, we look for the next todo (which it still is) and set its state, actually marking it as the 'previous' todo

bzr revid: xmo@openerp.com-20101108104412-bd7bf3k7c5p5jkpl
bin/addons/base/res/res_config.py