Odoo Help


Point of sale - Can't send orders

on 6/30/13, 7:48 PM 8,065 views

Hello I testing the POS sales in a multi-company enviroment, I configured this one with store and wharehouse for an child company. My error happens when I try send one order after payment, button gren of point of sale is converted to red and firebug shows this error:

Failed to send order: Object { id=2, data={...}}


{"jsonrpc":"2.0","method":"call","params":{"model":"pos.order","method":"create_from_ui","args":[[{"id":2,"data":{"name":"Order 1372627409348","amount_paid":6,"amount_total":5.5,"amount_tax":0,"amount_return":0.5,"lines":[[0,0,{"qty":1,"price_unit":5.5,"discount":0,"product_id":37}]],"statement_ids":[[0,0,{"name":"2013-06-30 21:23:46","statement_id":13,"account_id":2174,"journal_id":55,"amount":6}]],"pos_session_id":8,"user_id":4}}]],"kwargs":{},"session_id":"1c41d0e2af8b4b22b8be1bb11efdb7fe","context":{"lang":"es_MX","tz":"America/Mexico_City","uid":4}},"id":"r546"}


{"jsonrpc": "2.0", "id": "r546", "error": {"message": "OpenERP Server Error", "code": 200, "data": {"debug": "Client Traceback (most recent call last):\n File \"/opt/bitnami/apps/openerp/lib/openerp-7.0_20130508_231028-py2.7.egg/openerp/addons/web/http.py\", line 204, in dispatch\n response[\"result\"] = method(self, *self.params)\n File \"/opt/bitnami/apps/openerp/lib/openerp-7.0_20130508_231028-py2.7.egg/openerp/addons/web/controllers/main.py\", line 1129, in call_kw\n return self._call_kw(req, model, method, args, kwargs)\n File \"/opt/bitnami/apps/openerp/lib/openerp-7.0_20130508_231028-py2.7.egg/openerp/addons/web/controllers/main.py\", line 1121, in _call_kw\n return getattr(req.session.model(model), method)(args, **kwargs)\n File \"/opt/bitnami/apps/openerp/lib/openerp-7.0_20130508_231028-py2.7.egg/openerp/addons/web/session.py\", line 43, in proxy\n result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)\n File \"/opt/bitnami/apps/openerp/lib/openerp-7.0_20130508_231028-py2.7.egg/openerp/addons/web/session.py\", line 31, in proxy_method\n result = self.session.send(self.service_name, method, *args)\n File \"/opt/bitnami/apps/openerp/lib/openerp-7.0_20130508_231028-py2.7.egg/openerp/addons/web/session.py\", line 92, in send\n raise xmlrpclib.Fault(code_string % (e.name, e.value), '')\n\n\nServer ", "fault_code": "warning -- Integrity Error\n\nThe operation cannot be completed, probably due to the following:\n- deletion: you may be trying to delete a record while other records still reference it\n- creation/update: a mandatory field is not correctly set\n\n[object with reference: name - name]", "type": "server_exception"}}}

thanks in advanced

On 6/16/14, 5:29 AM

Follow Thierry Godin solution, makes sure you create different warehouse for the sub company.


Thierry Godin

--Thierry Godin--
| 8 7 8
Collegien, France
--Thierry Godin--


Thierry Godin
On 12/10/13, 4:57 AM


Sorry I just read this question.

I had the same problem and I fixed it.

Read this : Multiple POS does not create sequence for each company


There is no fix at that link. Can you post the fix here, in this answer?

Elephante, Sean Samborski
on 2/18/14, 4:12 PM

The fix is : duplicate pos.order sequence and pos.order.line sequence for each company.

Go to Configuration > Sequences & identifiants > Sequences

Then type "pos" in the search filter

Then duplicate code = "POS order" + "POS order line" and set it for each company

Thierry Godin
on 2/18/14, 4:18 PM
mozib khan
On 9/2/14, 2:45 AM

Please follow this link. you will get solution




Martin Pascualon
On 11/1/13, 6:52 PM

Could u fix it?


About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 6/30/13, 7:48 PM
Seen: 8065 times
Last updated: 3/16/15, 8:10 AM