跳至內容
選單
此問題已被標幟
4 回覆
15301 瀏覽次數

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

頭像
捨棄
最佳答案

Could u fix it?

Regards

頭像
捨棄
最佳答案

Please follow this link. you will get solution

 

http://mozibto.blogspot.in/

Thanks 

頭像
捨棄
最佳答案

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

頭像
捨棄
最佳答案

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?

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

相關帖文 回覆 瀏覽次數 活動
0
8月 22
2278
0
4月 24
1848
1
3月 15
7389
0
4月 23
2323
0
9月 25
553