producteditor: Guess the next code

Instead of depending on id, try to guess it

Fixes: http://bugs.async.com.br/show_bug.cgi?id=5204

Change-Id: Ie7519a8717a5573bad6755cba1495bf882722b0b