Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

2

current transaction is aborted, commands ignored until end of transaction block in pos

By
Jignesh Mehta
on 6/6/16, 3:13 AM 1,145 views

 Hello All,

When i create pos receipt from multiple user, sometime it gives error which is show below.


Error :-

current transaction is aborted, commands ignored until end of transaction block


Traceback (most recent call last):

File "/home/user/odoo/odoo/openerp/http.py", line 643, in _handle_exception

return super(JsonRequest, self)._handle_exception(exception)

File "/home/user/odoo/odoo/openerp/http.py", line 680, in dispatch

result = self._call_function(**self.params)

File "/home/user/odoo/odoo/openerp/http.py", line 316, in _call_function

return checked_call(self.db, *args, **kwargs)

File "/home/user/odoo/odoo/openerp/service/model.py", line 118, in wrapper

return f(dbname, *args, **kwargs)

File "/home/user/odoo/odoo/openerp/http.py", line 309, in checked_call

result = self.endpoint(*a, **kw)

File "/home/user/odoo/odoo/openerp/http.py", line 959, in __call__

return self.method(*args, **kw)

File "/home/user/odoo/odoo/openerp/http.py", line 509, in response_wrap

response = f(*args, **kw)

File "/home/user/odoo/pos/web/controllers/main.py", line 971, in call_kw

return self._call_kw(model, method, args, kwargs)

File "/home/user/odoo/pos/web/controllers/main.py", line 963, in _call_kw

return checked_call(request.db, *args, **kwargs)

File "/home/user/odoo/odoo/openerp/service/model.py", line 118, in wrapper

return f(dbname, *args, **kwargs)

File "/home/user/odoo/pos/web/controllers/main.py", line 962, in checked_call

return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)

File "/home/user/odoo/odoo/openerp/api.py", line 250, in wrapper

return old_api(self, *args, **kwargs)

File "/home/user/odoo/pos/point_of_sale/point_of_sale.py", line 750, in create_from_ui

existing_order_ids = self.search(cr, uid, [('pos_reference', 'in', submitted_references)], context=context)

File "/home/user/odoo/odoo/openerp/api.py", line 250, in wrapper

return old_api(self, *args, **kwargs)

File "/home/user/odoo/odoo/openerp/models.py", line 1658, in search

return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)

File "/home/user/odoo/odoo/openerp/api.py", line 250, in wrapper

return old_api(self, *args, **kwargs)

File "/home/user/odoo/odoo/openerp/models.py", line 4781, in _search

cr.execute(query_str, where_clause_params)

File "/home/user/odoo/odoo/openerp/sql_db.py", line 141, in wrapper

return f(self, *args, **kwargs)

File "/home/user/odoo/odoo/openerp/sql_db.py", line 220, in execute

res = self._obj.execute(query, params)

InternalError: current transaction is aborted, commands ignored until end of transaction block



Thanks in advance.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 6/6/16, 3:13 AM
Seen: 1145 times
Last updated: 6/7/16, 5:39 AM