Cannot pick products with real time stock valuation enabled
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP R&D Addons Team 3 |
Bug Description
I have set up a new nightly 6.2dev-
- accounting , belgium
- purchase
- warehouse
I define a new product, category: all products , valuation: real-time, fill out required fields :
stock input account (new account)
stock output account (new account)
stock valuation account (new account)
when I create a PO and try to receive goods I get a key error on period id output:
File "/opt/openerp/
stock_
File "/opt/openerp/
self.
File "/opt/openerp/
context=
File "/opt/openerp/
self.
File "/opt/openerp/
'ref': move.picking_id and move.picking_
File "/opt/openerp/
c['period_id'] = vals['period_id']
KeyError: 'period_id'
Related branches
- OpenERP Core Team: Pending requested
-
Diff: 15 lines (+2/-2)1 file modifiedaccount/account.py (+2/-2)
Hello,
You can try to fix by following code.
c['period_id'] = vals.get( 'period_ id')
This will help.
Thanks!