Skip to content

Commit fe97ce5

Browse files
committed
Added UserID getter to Session class
1 parent 4dc25eb commit fe97ce5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/com/debortoliwines/odoo/api/Session.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,14 @@ public Version getServerVersion() throws XmlRpcException {
274274
return serverVersion;
275275
}
276276

277+
/**
278+
* Returns the current logged in User's UserID
279+
* @return
280+
*/
281+
public int getUserID() {
282+
return userID;
283+
}
284+
277285
/**
278286
* Retrieves the context object for the session to set properties on
279287
*

0 commit comments

Comments
 (0)