diff --git a/geoip_website_redirect/README.rst b/geoip_website_redirect/README.rst index 00821f9af..4de3bbba3 100644 --- a/geoip_website_redirect/README.rst +++ b/geoip_website_redirect/README.rst @@ -2,8 +2,8 @@ :target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html :alt: License: LGPL-3 -Website GeoIP Based Language and Currency -========================================= +Website Geolocation Based Language and Currency +=============================================== * This module allow to view the website content according to login user's country details. Installation diff --git a/geoip_website_redirect/__manifest__.py b/geoip_website_redirect/__manifest__.py index 923f663c9..619983280 100644 --- a/geoip_website_redirect/__manifest__.py +++ b/geoip_website_redirect/__manifest__.py @@ -20,10 +20,10 @@ # ############################################################################# { - 'name': 'Website GeoIP Based Language and Currency', + 'name': 'Website Geolocation Based Language and Currency', 'version': '17.0.1.0.0', 'category': 'eCommerce, Productivity', - 'summary': """Website GeoIP Based Language and Currency Application + 'summary': """Website Geolocation Based Language and Currency Application for Odoo 17""", 'description': """The module helps you to map currency and language based on User's IP address""", diff --git a/geoip_website_redirect/controllers/geoip_website_redirect.py b/geoip_website_redirect/controllers/geoip_website_redirect.py index d1524465c..9441c45b2 100644 --- a/geoip_website_redirect/controllers/geoip_website_redirect.py +++ b/geoip_website_redirect/controllers/geoip_website_redirect.py @@ -26,11 +26,13 @@ from odoo.http import request from odoo.addons.web.controllers.home import Home -class GeoIP(Home): +class Geolocation(Home): """ controller for selecting login user's datas """ + def get_location(self, ip_address): """ Get location details of user using ip address""" - response = requests.get(f'http://ip-api.com/json/{ip_address}', timeout=20).json() + response = requests.get(f'http://ip-api.com/json/{ip_address}', + timeout=20).json() return {"country": response.get("country")} @http.route() diff --git a/geoip_website_redirect/doc/RELEASE_NOTES.md b/geoip_website_redirect/doc/RELEASE_NOTES.md index a6862cc18..976445c2d 100644 --- a/geoip_website_redirect/doc/RELEASE_NOTES.md +++ b/geoip_website_redirect/doc/RELEASE_NOTES.md @@ -4,4 +4,11 @@ #### Version 17.0.1.0.0 ##### ADD -- Initial Commit for Website GeoIP Based Language and Currency +- Initial Commit for Website Geolocation Based Language and Currency + +#### 29.10.2024 +#### Version 17.0.1.1.0 +#### BUG FIX + +- The Key word is replaced from the index , manifest and controllers. + diff --git a/geoip_website_redirect/static/description/banner.jpg b/geoip_website_redirect/static/description/banner.jpg index 5aa31e161..850df1929 100644 Binary files a/geoip_website_redirect/static/description/banner.jpg and b/geoip_website_redirect/static/description/banner.jpg differ diff --git a/geoip_website_redirect/static/description/index.html b/geoip_website_redirect/static/description/index.html index 7583b00f1..49509a887 100644 --- a/geoip_website_redirect/static/description/index.html +++ b/geoip_website_redirect/static/description/index.html @@ -69,7 +69,7 @@

- Website GeoIP Based Language and Currency + Website Geolocation Based Language and Currency

@@ -78,7 +78,7 @@

- Website GeoIP Based Language and Currency is an application + Website Geolocation Based Language and Currency is an application which is fetch the IP address of customer's device and allow them to see website in their native language and see the currency as per the geolocation. @@ -231,12 +231,12 @@

- Website GeoIP Based Language and Currency.

+ Website Geolocation Based Language and Currency.

- The Website GeoIP Based Language and Currency application + The Website Geolocation Based Language and Currency application detects the IP address of a customer's device to display the website in their native language and show prices in the appropriate currency based on their geolocation. @@ -323,7 +323,7 @@

- Website GeoIP Based Language and Currency + Website Geolocation Based Language and Currency

@@ -387,7 +387,7 @@

- Comprehensive Features of Website GeoIP Based Language and Currency

+ Comprehensive Features of Website Geolocation Based Language and Currency