Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
2996 มุมมอง

how to login Odoo System from PHP pge consider passed right username and password

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

I think you need to use xmlrpc calls to odoo server ...

อวตาร
ละทิ้ง
ผู้เขียน

Thanks, can we call the login action method by and pass parameters from URL?

คำตอบที่ดีที่สุด

Connexion

$user = 'admin';
$password = 'mY5up3rPwd';
$dbname = 'test';
$server_url = 'https://www.monsite.com:8069'; //connexion sécurisée$connexion = new xmlrpc_client($server_url . "/xmlrpc/common");
$connexion->setSSLVerifyPeer(0);
$c_msg = new xmlrpcmsg('login');
$c_msg->addParam(new xmlrpcval($dbname, "string"));
$c_msg->addParam(new xmlrpcval($user, "string"));
$c_msg->addParam(new xmlrpcval($password, "string"));
$c_response = $connexion->send($c_msg);

Now you are connected in xmlrpc to odoo as admin


อวตาร
ละทิ้ง