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
- Бухгалтерия
- Склад
- PoS
- Project
- MRP
Этот вопрос был отмечен
4494
Представления
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
РегистрацияRelated Posts | Ответы | Просмотры | Активность | |
---|---|---|---|---|
|
2
мар. 15
|
5333 | ||
OpenERP get User IP Address
Решено
|
|
7
февр. 24
|
12231 | |
|
0
нояб. 17
|
4033 | ||
|
1
нояб. 24
|
1067 | ||
|
2
июл. 22
|
14969 |
------------------------------ 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')