openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #18625
[Bug 1084243] [NEW] real time stock valuation in OpenErp 7.0 Server Error
Public bug reported:
I wanted to activate real time stock valuation {on OpenErp Test machine}
--
First I activated on SETTINGS screen
--
Accounting [x] Generate accounting entries per stock movement
[ ] Create and open the invoice when the user finish a delivery order
---
Then for real time stock valuation, on product group [ALL PRODUCTS] screen setup accounts.
Account Stock Properties
Stock Input Account 300000 Goederen 1
Stock Output Account 300100 Goederen 2
Stock Valuation Account 305000 Grondstoffen 1
Stock journal Stock Journal (EUR)
---
The on the product I had selected [Inventory Valuation Periodical(Manual)]
--
No problems with buying, receiving products. So everything worked with these options.
But after activating -- Inventory Valuation Real Time (automated) -- on the same product an Error occurred
on receiving the product.
Module/menu path
Warehouse = Receiving a product will generate a error (see below ERROR Output)
Warehouse = Receiving -> Incoming Shipments -> Receive products ->
RECEIVE BUTTON --> ERROR
ERROR Output
-----------------------------
OpenERP Server Error
Client Traceback (most recent call last):
File "/opt/openerp/server/openerp/addons/web/http.py", line 192, in dispatch
response["result"] = method(self, **self.params)
File "/opt/openerp/server/openerp/addons/web/controllers/main.py", line 1225, in call_button
action = self.call_common(req, model, method, args, domain_id, context_id)
File "/opt/openerp/server/openerp/addons/web/controllers/main.py", line 1159, in call_common
return self._call_kw(req, model, method, args, {})
File "/opt/openerp/server/openerp/addons/web/controllers/main.py", line 1183, in _call_kw
return getattr(req.session.model(model), method)(*args, **kwargs)
File "/opt/openerp/server/openerp/addons/web/session.py", line 42, in proxy
result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
File "/opt/openerp/server/openerp/addons/web/session.py", line 30, in proxy_method
result = self.session.send(self.service_name, method, *args)
File "/opt/openerp/server/openerp/addons/web/session.py", line 105, in send
raise xmlrpclib.Fault(openerp.tools.exception_to_unicode(e), formatted_info)
Server Traceback (most recent call last):
File "/opt/openerp/server/openerp/addons/web/session.py", line 91, in send
return openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/opt/openerp/server/openerp/netsvc.py", line 361, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/opt/openerp/server/openerp/service/web_services.py", line 596, in dispatch
res = fn(db, uid, *params)
File "/opt/openerp/server/openerp/osv/osv.py", line 167, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/opt/openerp/server/openerp/osv/osv.py", line 121, in wrapper
return f(self, dbname, *args, **kwargs)
File "/opt/openerp/server/openerp/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/opt/openerp/server/openerp/osv/osv.py", line 164, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/opt/openerp/server/openerp/addons/stock/wizard/stock_partial_picking.py", line 213, in do_partial
stock_picking.do_partial(cr, uid, [partial.picking_id.id], partial_data, context=context)
File "/opt/openerp/server/openerp/addons/stock/stock.py", line 1361, in do_partial
self.action_move(cr, uid, [pick.id], context=context)
File "/opt/openerp/server/openerp/addons/stock/stock.py", line 906, in action_move
context=context)
File "/opt/openerp/server/openerp/addons/stock/stock.py", line 2448, in action_done
self._create_product_valuation_moves(cr, uid, move, context=context)
File "/opt/openerp/server/openerp/addons/stock/stock.py", line 2407, in _create_product_valuation_moves
'ref': move.picking_id and move.picking_id.name})
File "/opt/openerp/server/openerp/addons/account/account.py", line 1442, in create
c['period_id'] = vals['period_id']
KeyError: 'period_id'
------------------------
** Affects: openobject-server
Importance: Undecided
Status: New
** Tags: openerp7
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1084243
Title:
real time stock valuation in OpenErp 7.0 Server Error
Status in OpenERP Server:
New
Bug description:
I wanted to activate real time stock valuation {on OpenErp Test machine}
--
First I activated on SETTINGS screen
--
Accounting [x] Generate accounting entries per stock movement
[ ] Create and open the invoice when the user finish a delivery order
---
Then for real time stock valuation, on product group [ALL PRODUCTS] screen setup accounts.
Account Stock Properties
Stock Input Account 300000 Goederen 1
Stock Output Account 300100 Goederen 2
Stock Valuation Account 305000 Grondstoffen 1
Stock journal Stock Journal (EUR)
---
The on the product I had selected [Inventory Valuation Periodical(Manual)]
--
No problems with buying, receiving products. So everything worked with these options.
But after activating -- Inventory Valuation Real Time (automated) -- on the same product an Error occurred
on receiving the product.
Module/menu path
Warehouse = Receiving a product will generate a error (see below ERROR Output)
Warehouse = Receiving -> Incoming Shipments -> Receive products ->
RECEIVE BUTTON --> ERROR
ERROR Output
-----------------------------
OpenERP Server Error
Client Traceback (most recent call last):
File "/opt/openerp/server/openerp/addons/web/http.py", line 192, in dispatch
response["result"] = method(self, **self.params)
File "/opt/openerp/server/openerp/addons/web/controllers/main.py", line 1225, in call_button
action = self.call_common(req, model, method, args, domain_id, context_id)
File "/opt/openerp/server/openerp/addons/web/controllers/main.py", line 1159, in call_common
return self._call_kw(req, model, method, args, {})
File "/opt/openerp/server/openerp/addons/web/controllers/main.py", line 1183, in _call_kw
return getattr(req.session.model(model), method)(*args, **kwargs)
File "/opt/openerp/server/openerp/addons/web/session.py", line 42, in proxy
result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
File "/opt/openerp/server/openerp/addons/web/session.py", line 30, in proxy_method
result = self.session.send(self.service_name, method, *args)
File "/opt/openerp/server/openerp/addons/web/session.py", line 105, in send
raise xmlrpclib.Fault(openerp.tools.exception_to_unicode(e), formatted_info)
Server Traceback (most recent call last):
File "/opt/openerp/server/openerp/addons/web/session.py", line 91, in send
return openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/opt/openerp/server/openerp/netsvc.py", line 361, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/opt/openerp/server/openerp/service/web_services.py", line 596, in dispatch
res = fn(db, uid, *params)
File "/opt/openerp/server/openerp/osv/osv.py", line 167, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/opt/openerp/server/openerp/osv/osv.py", line 121, in wrapper
return f(self, dbname, *args, **kwargs)
File "/opt/openerp/server/openerp/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/opt/openerp/server/openerp/osv/osv.py", line 164, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/opt/openerp/server/openerp/addons/stock/wizard/stock_partial_picking.py", line 213, in do_partial
stock_picking.do_partial(cr, uid, [partial.picking_id.id], partial_data, context=context)
File "/opt/openerp/server/openerp/addons/stock/stock.py", line 1361, in do_partial
self.action_move(cr, uid, [pick.id], context=context)
File "/opt/openerp/server/openerp/addons/stock/stock.py", line 906, in action_move
context=context)
File "/opt/openerp/server/openerp/addons/stock/stock.py", line 2448, in action_done
self._create_product_valuation_moves(cr, uid, move, context=context)
File "/opt/openerp/server/openerp/addons/stock/stock.py", line 2407, in _create_product_valuation_moves
'ref': move.picking_id and move.picking_id.name})
File "/opt/openerp/server/openerp/addons/account/account.py", line 1442, in create
c['period_id'] = vals['period_id']
KeyError: 'period_id'
------------------------
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1084243/+subscriptions
Follow ups
References