1. 优化从设备同步到服务端的信息,不要再同步回设备
This commit is contained in:
+2
-1
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user