odoo/odoo — pull request #145 by nabero (2014-05-22 08:05:06+00:00)
Title: [FIX] stock: auto_validate move not set to done when multiple parent mov...

3 stock move : A B C

A : auto_validate = true
B & C : move_dest_id = A

When action confirm is runned on B & C at the same time, A keep on assigned state.

To reproduce :
Create 3 products:
PA : manufacture, consumable with phantom bom with PB and PC
PB, PC: buy, stockable

- Create a sale order with PA. Confirm
- Create invoice, confirm, register payemnt
- View delivery order, deliver the whole sale order

Without the patch : the sale order is not set to done though it should be (delivered and paid)