Error when update Quantity On Hand for Product with real-time valuation

Bug #1084416 reported by Kitti Upariphutthiphong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

Based on trunk version,
(Build 544)
server (4613)
addons (8155)
web (3518)

Error when update Quantity On Hand for Product with real-time valuation

Step:
====
1. Change warehouse setting --> Generate accounting entries per stock movement
2. Change product, i.e., USB Adapter to use Inventory Valuation = Real Tim + Add input and output accounting
3. On Product's Inventory tab, update Quantity On Hand to anything.
4. Error,

  File "/home/kittiu/workspace/openerp_trunk/addons/stock/stock.py", line 2448, in action_done
    self._create_product_valuation_moves(cr, uid, move, context=context)
  File "/home/kittiu/workspace/openerp_trunk/addons/stock/stock.py", line 2407, in _create_product_valuation_moves
    'ref': move.picking_id and move.picking_id.name})
  File "/home/kittiu/workspace/openerp_trunk/addons/account/account.py", line 1442, in create
    c['period_id'] = vals['period_id']
KeyError: 'period_id'

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.