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
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
4507
Widoki
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
2
mar 15
|
5340 | ||
OpenERP get User IP Address
Rozwiązane
|
|
7
lut 24
|
12245 | |
|
0
lis 17
|
4035 | ||
|
1
lis 24
|
1071 | ||
How to get ip address of login user?
Rozwiązane
|
|
2
lip 22
|
14982 |
------------------------------ 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')