IP address of user

13 views
Skip to first unread message

Jon Levy

unread,
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

unread,
Jul 28, 2018, 11:25:06 AM7/28/18
to tryton
We added the werkzeug request object in the context in
http://hg.tryton.org/trytond/rev/dce0d8fb3c3f
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
Forward
0 new messages