Skip to content

Commit 6f30449

Browse files
authored
Merge pull request DeBortoliWines#47 from georgerb/master
Added UserID getter to Session class
2 parents 4dc25eb + fe97ce5 commit 6f30449

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)