Browse Source

Aug 31: [FIX] Bug Fixed 'geoip_website_redirect'

pull/195/merge
Cybrosys Technologies 11 months ago
parent
commit
7b9cafe3fa
  1. 4
      geoip_website_redirect/README.rst
  2. 5
      geoip_website_redirect/__manifest__.py
  3. 4
      geoip_website_redirect/controllers/main.py
  4. 2
      geoip_website_redirect/doc/RELEASE_NOTES.md
  5. BIN
      geoip_website_redirect/static/description/banner.png
  6. 4
      geoip_website_redirect/static/description/index.html

4
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 Language And Currency Based On GeoIP
============================================
Website Geolocation Based Language and Currency
===============================================
ThisModule helps the user to view website and its contents in language of country from which the user
login and also able to view the website shop's currency as that country's currency

5
geoip_website_redirect/__manifest__.py

@ -20,12 +20,12 @@
#
###############################################################################
{
'name': 'Website Language And Currency Based On GeoIP',
'name': 'Website Geolocation Based Language and Currency',
'version': '15.0.1.0.0',
'category': 'eCommerce, Productivity',
'summary': """This module helps you to map currency and language
based on Customer's IP address for Odoo 15""",
'description': """Website Language And Currency Based On GeoIP Application
'description': """Website Geolocation Based Language and Currency Application
module helps the user to view website and its contents in the language of
country from which the user login and also able to view the website shop's
currency as that country's currency""",
@ -47,5 +47,4 @@
'installable': True,
'auto_install': False,
'application': False,
}

4
geoip_website_redirect/controllers/main.py

@ -26,7 +26,7 @@ from odoo.addons.portal.controllers.web import Home
from odoo.http import request
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"""
@ -36,7 +36,7 @@ class GeoIP(Home):
@http.route()
def web_login(self, redirect=None, **kw):
""" on login access customer country information """
result = super(GeoIP, self).web_login(redirect=redirect, **kw)
result = super(Geolocation, self).web_login(redirect=redirect, **kw)
request.env.user.write({'ip_address': kw.get('user_ip')})
datas = self.get_location(kw.get('user_ip'))
if datas:

2
geoip_website_redirect/doc/RELEASE_NOTES.md

@ -4,4 +4,4 @@
#### Version 15.0.1.0.0
#### ADD
- Initial commit for Website Language And Currency Based On GeoIP
- Initial commit for Website Geolocation Based Language and Currency

BIN
geoip_website_redirect/static/description/banner.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 KiB

After

Width:  |  Height:  |  Size: 57 KiB

4
geoip_website_redirect/static/description/index.html

@ -25,7 +25,7 @@
<div class="col-sm-12 col-md-12 col-lg-12">
<!-- APP HERO -->
<h3 style="color: #FFFFFF; font-weight: bolder; font-size: 35px; text-align: center; margin-top: 50px;">
Website Language And Currency Based On GeoIP</h3>
Website Geolocation Based Language and Currency</h3>
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 20px;">
Module To Map Currency And Language Based On Customer's IP Address</p><br/><br/><br/><br/><br/>
<!-- END OF APP HERO -->
@ -111,7 +111,7 @@
<div class="row"
style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;">
<div class="col-sm-12 py-4">
Website Language And Currency Based On GeoIP is an application which is
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

Loading…
Cancel
Save