openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #18098
[Bug 1081491] [NEW] KeyError: 'currency_id'
You have been subscribed to a public bug:
Using latest 6.2 developer src on Debian.
Every attempt to set a bank account to a company results in the
following error;
OpenERP Server Error
Client Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/addons/web/http.py", line 192, in dispatch
response["result"] = method(self, **self.params)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/addons/web/controllers/main.py", line 1219, in onchange
result = self.call_common(req, model, method, args, context_id=context_id)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/addons/web/controllers/main.py", line 1173, in call_common
return self._call_kw(req, model, method, args, {})
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/addons/web/controllers/main.py", line 1197, in _call_kw
return getattr(req.session.model(model), method)(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/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 "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/addons/web/session.py", line 30, in proxy_method
result = self.session.send(self.service_name, method, *args)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/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 "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/addons/web/session.py", line 91, in send
return openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/netsvc.py", line 361, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/service/web_services.py", line 596, in dispatch
res = fn(db, uid, *params)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/osv/osv.py", line 167, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/osv/osv.py", line 121, in wrapper
return f(self, dbname, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/osv/osv.py", line 164, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/addons/base/res/res_company.py", line 157, in onchange_footer
account_names = res_partner_bank._prepare_name_get(cr, uid, account_data, context=context)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/addons/account/account_bank.py", line 48, in _prepare_name_get
currency_ids = list(set(data['currency_id'][0] for data in bank_dicts if data['currency_id']))
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/addons/account/account_bank.py", line 48, in <genexpr>
currency_ids = list(set(data['currency_id'][0] for data in bank_dicts if data['currency_id']))
KeyError: 'currency_id'
To replicate,
Go to Settings > Companies
Edit the default "Your Company"
Try to add a bank account.
** Affects: openobject-addons
Importance: Undecided
Status: New
--
KeyError: 'currency_id'
https://bugs.launchpad.net/bugs/1081491
You received this bug notification because you are a member of OpenERP Indian Team, which is subscribed to OpenERP Addons.