Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
2549 Lượt xem

Hello!


I followed this tutorial:

https://www.odoo.com/documentation/14.0/webservices/odoo.html


I wanted to test it with a runbot instance - here are my settings:


$url = 'https://5045307-14-0.runbot35.odoo.com';
$db = '5045307-14-0-all';
$username = "admin";
$password = 'admin';


But i still fails, can somebody help me?


array:2 [
  "faultCode" => 1
  "faultString" => """
    Traceback (most recent call last):\n
      File "/data/build/odoo/odoo/addons/base/controllers/rpc.py", line 69, in xmlrpc_2\n
        response = self._xmlrpc(service)\n
      File "/data/build/odoo/odoo/addons/base/controllers/rpc.py", line 49, in _xmlrpc\n
        result = dispatch_rpc(service, method, params)\n
      File "/data/build/odoo/odoo/http.py", line 140, in dispatch_rpc\n
        result = dispatch(method, params)\n
      File "/data/build/odoo/odoo/service/common.py", line 56, in dispatch\n
        return g[exp_method_name](*params)\n
      File "/data/build/odoo/odoo/service/common.py", line 27, in exp_authenticate\n
        return res_users.authenticate(db, login, password, {**user_agent_env, 'interactive': False})\n
    TypeError: 'list' object is not a mapping\n
    """
]
Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

These tools seem to be working actually. Thanks Kjeld! I'll be looking into them in more detail in the next few days/weeks.

Thanks!

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

I have created a set of tools to search, read and write via PHP. I hope you find them useful. You can find the source code here github.com/Gitdyr/odoo-php-tools .

I set username/password to demo/demo.


Ảnh đại diện
Huỷ bỏ