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