Browse Source

Aug 31: [FIX] Bug Fixed 'geoip_website_redirect'

14.0
RisvanaCybro 8 months ago
parent
commit
518c7014c8
  1. 4
      geoip_website_redirect/README.rst
  2. 4
      geoip_website_redirect/__manifest__.py
  3. 4
      geoip_website_redirect/controllers/geoip_website_redirect.py
  4. 2
      geoip_website_redirect/doc/RELEASE_NOTES.md
  5. BIN
      geoip_website_redirect/static/description/banner.png
  6. BIN
      geoip_website_redirect/static/description/icon.png
  7. 6
      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 :target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3 :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 This module allow to view the website content according to login user's country details
Company Company

4
geoip_website_redirect/__manifest__.py

@ -20,10 +20,10 @@
# #
############################################################################# #############################################################################
{ {
'name': 'Website GeoIP Based Language and Currency', 'name': 'Website Geolocation Based Language and Currency',
'version': '14.0.1.0.0', 'version': '14.0.1.0.0',
'category': 'eCommerce, Productivity', 'category': 'eCommerce, Productivity',
'summary': """Website GeoIP Based Language and Currency Application 'summary': """Website Geolocation Based Language and Currency Application
for Odoo 14""", for Odoo 14""",
'description': """The module helps you to map currency and language 'description': """The module helps you to map currency and language
based on Customer's IP address""", based on Customer's IP address""",

4
geoip_website_redirect/controllers/geoip_website_redirect.py

@ -27,7 +27,7 @@ from odoo.exceptions import UserError
from odoo.http import request from odoo.http import request
class GeoIP(Home): class Geolocation(Home):
""" Controller for selecting login user's datas """ """ Controller for selecting login user's datas """
def get_location(self, ip_address): def get_location(self, ip_address):
@ -49,7 +49,7 @@ class GeoIP(Home):
@http.route() @http.route()
def web_login(self, redirect=None, **kw): def web_login(self, redirect=None, **kw):
""" On login access customer country information """ """ 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')}) request.env.user.write({'ip_address': kw.get('user_ip')})
datas = self.get_location(kw.get('user_ip')) datas = self.get_location(kw.get('user_ip'))
if datas: if datas:

2
geoip_website_redirect/doc/RELEASE_NOTES.md

@ -4,5 +4,5 @@
#### Version 14.0.1.0.0 #### Version 14.0.1.0.0
#### ADD #### ADD
- Initial commit for Website GeoIP Based Language and Currency - 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: 93 KiB

After

Width:  |  Height:  |  Size: 57 KiB

BIN
geoip_website_redirect/static/description/icon.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 12 KiB

6
geoip_website_redirect/static/description/index.html

@ -26,9 +26,9 @@
<div class="row"> <div class="row">
<div class="col-sm-12 col-md-12 col-lg-12"> <div class="col-sm-12 col-md-12 col-lg-12">
<h1 style="color: #FFFFFF; font-weight: bolder; font-size: 50px; text-align: center; margin-top: 50px;"> <h1 style="color: #FFFFFF; font-weight: bolder; font-size: 50px; text-align: center; margin-top: 50px;">
Website GeoIP Based<br> Language And Currency</h1> Website Geolocation Based<br> Language And Currency</h1>
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;"> <p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;">
Change Language And Currency Based On Country Of User In Odoo 14</p> Change Language and Currency Based on the User's Country in Odoo 14</p>
<!-- END OF APP HERO --> <!-- END OF APP HERO -->
<img src="assets/screenshots/hero.gif" <img src="assets/screenshots/hero.gif"
style="width: 75%; height: auto; position: absolute; margin-left: auto; margin-right: auto; top: 86%; left: 12%; right: auto;"/> style="width: 75%; height: auto; position: absolute; margin-left: auto; margin-right: auto; top: 86%; left: 12%; right: auto;"/>
@ -113,7 +113,7 @@
<div class="row" <div class="row"
style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;"> style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;">
<div class="col-sm-12 py-4"> <div class="col-sm-12 py-4">
Website GeoIP Based Language and Currency is an application which is Website Geolocation Based Language and Currency is an application which is
fetch the IP address fetch the IP address
of customer's device and allow them to see website in their native of customer's device and allow them to see website in their native
language and language and

Loading…
Cancel
Save