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.")