Apologies in advance it this topic has already been asked / discussed elsewhere (as neither searching here nor in google gave me any clue about it) , so here I go …
I want to add a field “Last IP” as we see it in “User” Doctype in , say “Material Request” in ERPNext.
I added that filed - exactly as it is in “User” - but did not get my IP registered as it does in User DT.
We use ERPN in our local LAN where we need to log local IP addresses like 192.168., which of course cannot be gotten via Amazone you’ve mentioned.
I am wondering how it is used in User doctype why it can’t be used elsewhere !
But your code was definitely taught me something new