From 89619c91403b1ad1a401cda668bdf9bcd16f1a48 Mon Sep 17 00:00:00 2001 From: sunjie Date: Wed, 23 Jul 2025 20:24:42 +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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mqtt/odoo_rpc.py b/mqtt/odoo_rpc.py index 4aa9c4380..e4124692e 100644 --- a/mqtt/odoo_rpc.py +++ b/mqtt/odoo_rpc.py @@ -18,7 +18,7 @@ class OdooRPCClient: self._connect() def _connect(self): - self.common = xmlrpc.client.ServerProxy('{}/xmlrpc/2/common'.format(self.url)) + self.common = xmlrpc.client.ServerProxy('{}/xmlrpc/2/common'.format(self.url),context=context) self.uid = self.common.authenticate(self.db, self.username, self.password, {}) if not self.uid: raise Exception("Authentication failed.")