Se rendre au contenu
Menu
Cette question a été signalée
4 Réponses
15326 Vues

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

Avatar
Ignorer
Meilleure réponse

Could u fix it?

Regards

Avatar
Ignorer
Meilleure réponse

Please follow this link. you will get solution

 

http://mozibto.blogspot.in/

Thanks 

Avatar
Ignorer
Meilleure réponse

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

Avatar
Ignorer
Meilleure réponse

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

Avatar
Ignorer

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

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

Publications associées Réponses Vues Activité
0
août 22
2297
0
avr. 24
1878
1
mars 15
7402
0
avr. 23
2333
0
sept. 25
596