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.

0

Point of sale - Can't send orders

By
Jogle
on 6/30/13, 7:48 PM 7,062 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={...}}

POST:

{"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"}

RESPONSE:

{"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

0
ahmad
On 6/16/14, 5:29 AM

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

0

Thierry Godin

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

..

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

Hi,

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

Regards

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
0
mozib khan
On 9/2/14, 2:45 AM

Please follow this link. you will get solution

 

http://mozibto.blogspot.in/

Thanks 

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

Could u fix it?

Regards

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/30/13, 7:48 PM
Seen: 7062 times
Last updated: 3/16/15, 8:10 AM