Discussion:
[tryton] IP address of user
Jon Levy
2018-07-28 13:50:35 UTC
Permalink
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.
--
You received this message because you are subscribed to the Google Groups "tryton" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/5a69e3fe-9669-42c5-9b7a-b5bb0d0424fb%40googlegroups.com.
Cédric Krier
2018-07-28 15:24:13 UTC
Permalink
Post by Jon Levy
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.
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: ***@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/
--
You received this message because you are subscribed to the Google Groups "tryton" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/20180728152413.qzja5ebq6batpxjs%40kei.
Loading...