openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #22829
[Bug 944079] Re: 6.1 Accounting - Journal Entries -> KeyError: 'journal_id'
Good evening
I am using the web interface of the OpenERP 7. When I want to add
journal entries to a opening journal appears the following
OpenERP Server Error
Client Traceback (most recent call last):
File "/opt/openerp-scalaria/server/openerp/addons/web/http.py", line 195, in dispatch
response["result"] = method(self, **self.params)
File "/opt/openerp-scalaria/server/openerp/addons/web/controllers/main.py", line 1078, in call_kw
return self._call_kw(req, model, method, args, kwargs)
File "/opt/openerp-scalaria/server/openerp/addons/web/controllers/main.py", line 1070, in _call_kw
return getattr(req.session.model(model), method)(*args, **kwargs)
File "/opt/openerp-scalaria/server/openerp/addons/web/session.py", line 43, in proxy
result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
File "/opt/openerp-scalaria/server/openerp/addons/web/session.py", line 31, in proxy_method
result = self.session.send(self.service_name, method, *args)
File "/opt/openerp-scalaria/server/openerp/addons/web/session.py", line 104, in send
raise xmlrpclib.Fault(openerp.tools.exception_to_unicode(e), formatted_info)
Server Traceback (most recent call last):
File "/opt/openerp-scalaria/server/openerp/addons/web/session.py", line 90, in send
return openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/opt/openerp-scalaria/server/openerp/netsvc.py", line 289, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/opt/openerp-scalaria/server/openerp/service/web_services.py", line 614, in dispatch
res = fn(db, uid, *params)
File "/opt/openerp-scalaria/server/openerp/osv/osv.py", line 169, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/opt/openerp-scalaria/server/openerp/osv/osv.py", line 123, in wrapper
return f(self, dbname, *args, **kwargs)
File "/opt/openerp-scalaria/server/openerp/osv/osv.py", line 179, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/opt/openerp-scalaria/server/openerp/osv/osv.py", line 166, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/opt/openerp-scalaria/server/openerp/addons/base_import/models.py", line 320, in do
cr, uid, import_fields, data, context=context)
File "/opt/openerp-scalaria/server/openerp/osv/orm.py", line 1362, in load
noupdate=noupdate, res_id=id, context=context))
File "/opt/openerp-scalaria/server/openerp/addons/base/ir/ir_model.py", line 956, in _update
res_id = model_obj.create(cr, uid, values, context=context)
File "/opt/openerp-scalaria/server/openerp/addons/account/account_move_line.py", line 1163, in create
self._update_journal_check(cr, uid, context['journal_id'], context['period_id'], context)
KeyError: 'journal_id'
I am sorry If I ask for simple things, but I recenlty begin to work with
OpenERP
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/944079
Title:
6.1 Accounting - Journal Entries -> KeyError: 'journal_id'
Status in OpenERP Addons (modules):
Fix Released
Bug description:
Hello,
I'm not sure if this has already been posted, but I couldn't find a
matching bug report.
When trying to create a Journal Entry in Accounting\Journal Entries
(date, amount ... + hit Enter), a KeyError occurs, although a Journal
has been selected:
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 121, in wrapper
return f(self, dbname, *args, **kwargs)
File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 164, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/conexus/Dokumente/addons/account/account_move_line.py", line 1246, in create
self._update_journal_check(cr, uid, context['journal_id'], context['period_id'], context)
KeyError: 'journal_id'
2012-03-01 15:08:25,639 5593 ERROR ? openerp.netsvc: journal_id
> /home/conexus/Dokumente/addons/account/account_move_line.py(1246)create()
-> self._update_journal_check(cr, uid, context['journal_id'], context['period_id'], context)
with kind regards,
Sven Petersen
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/944079/+subscriptions
References