From c0df220686fb421bee65358f534d06b1f1ffa042 Mon Sep 17 00:00:00 2001 From: sunjie Date: Wed, 23 Jul 2025 19:53:32 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E4=BC=98=E5=8C=96=E4=BB=8E=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E5=90=8C=E6=AD=A5=E5=88=B0=E6=9C=8D=E5=8A=A1=E7=AB=AF?= =?UTF-8?q?=E7=9A=84=E4=BF=A1=E6=81=AF,=E4=B8=8D=E8=A6=81=E5=86=8D?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E5=9B=9E=E8=AE=BE=E5=A4=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mqtt/odoo_rpc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mqtt/odoo_rpc.py b/mqtt/odoo_rpc.py index e4124692e..886152764 100644 --- a/mqtt/odoo_rpc.py +++ b/mqtt/odoo_rpc.py @@ -18,7 +18,8 @@ class OdooRPCClient: self._connect() def _connect(self): - self.common = xmlrpc.client.ServerProxy('{}/xmlrpc/2/common'.format(self.url),context=context) + self.common = xmlrpc.client.ServerProxy('{}/xmlrpc/2/common'.format(self.url), verbose=False, use_builtin_types=True, + context=ssl._create_unverified_context()) self.uid = self.common.authenticate(self.db, self.username, self.password, {}) if not self.uid: raise Exception("Authentication failed.")