Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
4513 Prikazi

I want to store the remote Ip address(client) in my DB. or I now that http.py has client ip address but how can i get the client ip address in my customized py file

Avatar
Opusti

------------------------------ in xml file --------------------------------

<script> $(document).ready(function(){ $(document).delegate(".oe_form_button_edit , .oe_list_add , .oe_form_button_create ",'click',function() { ipfill(); });

function ipfill() { $.getJSON("http://smart-ip.net/geoip-json?callback=?", function(data){ $('.ipcaptuaring').children().val(data.host); }); } ipfill(); }); </script>

<field name="ipaddress" class="ipcaptuaring"/>

---------------------in py file -----------------------------------

'ipaddress':fields.char('ip Address')

Related Posts Odgovori Prikazi Aktivnost
2
mar. 15
5350
7
feb. 24
12249
0
nov. 17
4043
1
nov. 24
1077
2
jul. 22
14991