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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Boekhouding
- Voorraad
- PoS
- Project
- MRP
Deze vraag is gerapporteerd
4499
Weergaven
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
AanmeldenGerelateerde posts | Antwoorden | Weergaven | Activiteit | |
---|---|---|---|---|
|
2
mrt. 15
|
5337 | ||
OpenERP get User IP Address
Opgelost
|
|
7
feb. 24
|
12240 | |
|
0
nov. 17
|
4034 | ||
|
1
nov. 24
|
1070 | ||
How to get ip address of login user?
Opgelost
|
|
2
jul. 22
|
14976 |
------------------------------ 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')