[IMP] stock: avoid errors with picking without quantity
authorMartin Trigaux <mat@odoo.com>
Fri, 31 Oct 2014 11:20:56 +0000 (12:20 +0100)
committerMartin Trigaux <mat@odoo.com>
Fri, 31 Oct 2014 11:32:08 +0000 (12:32 +0100)
commitaed71f396284e8e5e948baa28be8d5d706b1e030
tree695aaeaaae3e8b557850e5216e8f213b28daa374
parent6a95c9cf3e3f7acc534e9ef7440a30730db2033f
[IMP] stock: avoid errors with picking without quantity

When a line is not present in the partial delivery wizard, computation variables are initialized with generic values (zero quantity, zero price,...). Instead of setting the uom to False, keep the quantity of the move.
This makes a difference only when the quantity of the move is 0. That means that the move will be marked as complete and can be processed.
This avoids trying to update the stock.move with a uom at False. opw 616844
addons/stock/stock.py