Comment 3 for bug 519034

Revision history for this message
Sharoon Thomas http://openlabs.co.in (sharoonthomas) wrote :

Ana & Raphael,

Can you try this out:

Go through your products in the specific sale order lines and look for the one which does'nt get to the state done.
Then open the product and in 'Procurements & Locations' Tab(Page) open its production location or procurement location and ensure has the following parameter set:

Automatic Move : 'Automatic Move' (How dumb??? it should have been a check box or rename the field name)

I think this solved my issue, but unsure of it.

This is the stupid little code that fails the workflow:

if (not line.procurement_id) or (line.procurement_id.state=='done'):
    if line.state != 'done':
        write_done_ids.append(line.id)
    else:
        finished = False

And my guess is that the line.state never becpomes done because the move is never complete? May be wrong!