Error when update stock of a product
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenERP RMA |
New
|
Undecided
|
Unassigned |
Bug Description
Hello,
On the product form, if you update the stock (Update button next to qty_available) you have this error:
picking = self.pool.
KeyError: 'picking_id'
The code in crm_claim_
def create(self, cr, uid, vals, context=None):
move_id = super(stock_move, self).create(cr, uid, vals, context=context)
picking = self.pool.
if picking.
move = self.write(cr, uid, move_id, {'state': 'confirmed'}, context=context)
return move_id
If you do an Inventory, there is no picking_id in vals !
So I have patched with this code:
def create(self, cr, uid, vals, context=None):
move_id = super(stock_move, self).create(cr, uid, vals, context=context)
if vals.get(
picking = self.pool.
if picking.
return move_id