openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #11633
[Bug 972566] Re: [6.1]bug when openning a cash register
*** This bug is a duplicate of bug 941543 ***
https://bugs.launchpad.net/bugs/941543
After following your description,
i come to know the couse of error
if we replace this line:
if end[2]['pieces'] == dict_val['pieces']:
by this code
if dict_val and dict_val['pieces'] == end[2]['pieces'] :
it will solve the issue
--
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/972566
Title:
[6.1]bug when openning a cash register
Status in OpenERP Addons (modules):
Confirmed
Bug description:
On 6.1, when creating a Cash register, we ge the following error:
OpenERP Server Error
Client Traceback (most recent call last):
File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/http.py", line 180, in dispatch
response["result"] = method(controller, self, **self.params)
File "/usr/lib/pymodules/python2.6/openerp/addons/web/controllers/main.py", line 922, in create
r = m.create(data, req.session.eval_context(req.context))
File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/openerplib/main.py", line 250, in proxy
args, kw)
File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/openerplib/main.py", line 117, in proxy
result = self.connector.send(self.service_name, method, *args)
File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/http.py", line 611, in send
raise fault
Server Traceback (most recent call last):
File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/http.py", line 592, in send
result = openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/usr/lib/pymodules/python2.6/openerp/netsvc.py", line 360, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/usr/lib/pymodules/python2.6/openerp/service/web_services.py", line 572, in dispatch
res = fn(db, uid, *params)
File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 167, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
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 "/usr/lib/pymodules/python2.6/openerp/addons/account/account_cash_statement.py", line 220, in create
if end[2]['pieces'] == dict_val['pieces']:
TypeError: 'bool' object is unsubscriptable
Steps to reproduce:
- Go to Accounting > Cash Registers and create a new Cash register for the cash journal
- click on Open Cashbox
--> Bug
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/972566/+subscriptions
References