IP address of user

Skip to first unread message

Jon Levy

Jul 28, 2018, 9:50:35 AM7/28/18
to tryton
Is there a way to see a user's IP address (e.g., in the Transaction context)? This is for a time clock functionality, and would be used to know whether the user is at the office, or somewhere else.

Cédric Krier

Jul 28, 2018, 11:25:06 AM7/28/18
to tryton
We added the werkzeug request object in the context in
So you can retrieve the remote_addr attribute but you should not
consider that the _request key will always be in the context.

Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/
Reply all
Reply to author
0 new messages