Browse Source

Jan 10: [ADD] Initial Commit 'website_restrict_country'

pull/301/head
Shijin V 1 year ago
parent
commit
1ee38558b5
  1. 46
      website_restrict_country/README.rst
  2. 22
      website_restrict_country/__init__.py
  3. 54
      website_restrict_country/__manifest__.py
  4. 21
      website_restrict_country/controllers/__init__.py
  5. 43
      website_restrict_country/controllers/website_restrict_country.py
  6. 6
      website_restrict_country/doc/RELEASE_NOTES.md
  7. 24
      website_restrict_country/models/__init__.py
  8. 39
      website_restrict_country/models/country_details.py
  9. 39
      website_restrict_country/models/product_template.py
  10. 52
      website_restrict_country/models/sale_order.py
  11. 39
      website_restrict_country/models/website.py
  12. 2
      website_restrict_country/security/ir.model.access.csv
  13. BIN
      website_restrict_country/static/description/assets/icons/check.png
  14. BIN
      website_restrict_country/static/description/assets/icons/chevron.png
  15. BIN
      website_restrict_country/static/description/assets/icons/cogs.png
  16. BIN
      website_restrict_country/static/description/assets/icons/consultation.png
  17. BIN
      website_restrict_country/static/description/assets/icons/ecom-black.png
  18. BIN
      website_restrict_country/static/description/assets/icons/education-black.png
  19. BIN
      website_restrict_country/static/description/assets/icons/hotel-black.png
  20. BIN
      website_restrict_country/static/description/assets/icons/license.png
  21. BIN
      website_restrict_country/static/description/assets/icons/lifebuoy.png
  22. BIN
      website_restrict_country/static/description/assets/icons/manufacturing-black.png
  23. BIN
      website_restrict_country/static/description/assets/icons/pos-black.png
  24. BIN
      website_restrict_country/static/description/assets/icons/puzzle.png
  25. BIN
      website_restrict_country/static/description/assets/icons/restaurant-black.png
  26. BIN
      website_restrict_country/static/description/assets/icons/service-black.png
  27. BIN
      website_restrict_country/static/description/assets/icons/trading-black.png
  28. BIN
      website_restrict_country/static/description/assets/icons/training.png
  29. BIN
      website_restrict_country/static/description/assets/icons/update.png
  30. BIN
      website_restrict_country/static/description/assets/icons/user.png
  31. BIN
      website_restrict_country/static/description/assets/icons/wrench.png
  32. BIN
      website_restrict_country/static/description/assets/misc/categories.png
  33. BIN
      website_restrict_country/static/description/assets/misc/check-box.png
  34. BIN
      website_restrict_country/static/description/assets/misc/compass.png
  35. BIN
      website_restrict_country/static/description/assets/misc/corporate.png
  36. BIN
      website_restrict_country/static/description/assets/misc/customer-support.png
  37. BIN
      website_restrict_country/static/description/assets/misc/cybrosys-logo.png
  38. BIN
      website_restrict_country/static/description/assets/misc/features.png
  39. BIN
      website_restrict_country/static/description/assets/misc/logo.png
  40. BIN
      website_restrict_country/static/description/assets/misc/pictures.png
  41. BIN
      website_restrict_country/static/description/assets/misc/pie-chart.png
  42. BIN
      website_restrict_country/static/description/assets/misc/right-arrow.png
  43. BIN
      website_restrict_country/static/description/assets/misc/star.png
  44. BIN
      website_restrict_country/static/description/assets/misc/support.png
  45. BIN
      website_restrict_country/static/description/assets/misc/whatsapp.png
  46. BIN
      website_restrict_country/static/description/assets/modules/1.png
  47. BIN
      website_restrict_country/static/description/assets/modules/2.png
  48. BIN
      website_restrict_country/static/description/assets/modules/3.jpg
  49. BIN
      website_restrict_country/static/description/assets/modules/4.png
  50. BIN
      website_restrict_country/static/description/assets/modules/5.png
  51. BIN
      website_restrict_country/static/description/assets/modules/6.png
  52. BIN
      website_restrict_country/static/description/assets/screenshots/hero.gif
  53. BIN
      website_restrict_country/static/description/assets/screenshots/scrn1.png
  54. BIN
      website_restrict_country/static/description/assets/screenshots/scrn2.png
  55. BIN
      website_restrict_country/static/description/assets/screenshots/scrn3.png
  56. BIN
      website_restrict_country/static/description/assets/screenshots/scrn4.png
  57. BIN
      website_restrict_country/static/description/assets/screenshots/scrn5.png
  58. BIN
      website_restrict_country/static/description/assets/screenshots/scrn6.png
  59. BIN
      website_restrict_country/static/description/assets/screenshots/scrn7.png
  60. BIN
      website_restrict_country/static/description/banner.png
  61. BIN
      website_restrict_country/static/description/icon.png
  62. BIN
      website_restrict_country/static/description/images/checked.png
  63. BIN
      website_restrict_country/static/description/images/cybrosys.png
  64. BIN
      website_restrict_country/static/description/images/hero.gif
  65. BIN
      website_restrict_country/static/description/images/odoo-powr-countdown-timer-12.0.1.0.zip
  66. BIN
      website_restrict_country/static/description/images/product_brand_ecommerce.png
  67. BIN
      website_restrict_country/static/description/images/scrn1.png
  68. BIN
      website_restrict_country/static/description/images/scrn2.png
  69. BIN
      website_restrict_country/static/description/images/scrn3.png
  70. BIN
      website_restrict_country/static/description/images/scrn4.png
  71. BIN
      website_restrict_country/static/description/images/scrn5.png
  72. BIN
      website_restrict_country/static/description/images/scrn6.png
  73. BIN
      website_restrict_country/static/description/images/scrn7.png
  74. BIN
      website_restrict_country/static/description/images/website_featured_products.jpeg
  75. BIN
      website_restrict_country/static/description/images/website_repeat_sale.jpeg
  76. BIN
      website_restrict_country/static/description/images/website_sale_product_quick_view.jpeg
  77. 659
      website_restrict_country/static/description/index.html
  78. 22
      website_restrict_country/static/src/js/country_selection.js
  79. 33
      website_restrict_country/views/product_template_views.xml
  80. 140
      website_restrict_country/views/website_templates.xml
  81. 38
      website_restrict_country/views/website_views.xml

46
website_restrict_country/README.rst

@ -0,0 +1,46 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: https://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
Website Restrict Country
==================
* The Website Restrict Country module allows you to set restrictions for products that are unavailable in certain countries
Configuration
=============
* No additional configurations needed
Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__
License
-------
GNU AFFERO GENERAL PUBLIC LICENSE, Version 3 (AGPLv3)
(https://www.gnu.org/licenses/agpl-3.0-standalone.html)
Credits
-------
* Developer: (v16) Saleekha Musthari, Contact: odoo@cybrosys.com
Contacts
--------
* Mail Contact : odoo@cybrosys.com
* Website : https://cybrosys.com
Bug Tracker
-----------
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported.
Maintainer
==========
.. image:: https://cybrosys.com/images/logo.png
:target: https://cybrosys.com
This module is maintained by Cybrosys Technologies.
For support and more information, please visit `Our Website <https://cybrosys.com/>`__
Further information
===================
HTML Description: `<static/description/index.html>`__

22
website_restrict_country/__init__.py

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Saleekha Musthari (<https://www.cybrosys.com>)
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import controllers
from . import models

54
website_restrict_country/__manifest__.py

@ -0,0 +1,54 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Saleekha Musthari (<https://www.cybrosys.com>)
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
{
'name': 'Website Restrict Country',
'version': '16.0.1.0.0',
'category': 'Website',
'summary': """ The Website Restrict Country module allows you to set
restrictions for products that are unavailable in certain countries.
""",
'description': """ The Website Restrict Country module allows you to set
restrictions for products that are unavailable in certain countries.And You
can customise the cart and checkout message that is displayed. Customers
can select from the countries you specify in the Odoo backend.""",
'author': ' Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'website': "https://www.cybrosys.com",
'depends': ['stock', 'website_sale', 'sale_stock',
'sale_management'],
'data': [
'security/ir.model.access.csv',
'views/product_template_views.xml',
'views/website_templates.xml',
'views/website_views.xml',
],
'assets': {
'web.assets_frontend': [
'website_restrict_country/static/src/js/country_selection.js',
],
},
'images': ['static/description/banner.png'],
'license': 'AGPL-3',
'installable': True,
'auto_install': False,
'application': False,
}

21
website_restrict_country/controllers/__init__.py

@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Saleekha Musthari (<https://www.cybrosys.com>)
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import website_restrict_country

43
website_restrict_country/controllers/website_restrict_country.py

@ -0,0 +1,43 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Saleekha Musthari (<https://www.cybrosys.com>)
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import http
from odoo.http import request
class WebsiteCountry(http.Controller):
"""
This controller used to pass the selected country to the corresponding
template
"""
@http.route('/website/countries', type='json', auth="user", website=True)
def website_languages(self, country_id):
"""
This function used to search the country id, and it renders the
details of the selected country in to the template.
"""
country_id = request.env['res.country'].browse(int(country_id))
website_id = request.env['website'].browse(request.website.id)
website_id.default_country_id = country_id.id
response = http.Response(
template='website_restrict_country.country_selection',
qcontext={'country': country_id,
'countries': website_id.country_ids})
return response.render()

6
website_restrict_country/doc/RELEASE_NOTES.md

@ -0,0 +1,6 @@
## Module <website_restrict_country>
#### 11.01.2024
#### Version 16.0.1.0.0
##### ADD
- Initial Commit for Website Restrict Country

24
website_restrict_country/models/__init__.py

@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Saleekha Musthari (<https://www.cybrosys.com>)
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import country_details
from . import product_template
from . import sale_order
from . import website

39
website_restrict_country/models/country_details.py

@ -0,0 +1,39 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Saleekha Musthari (<https://www.cybrosys.com>)
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models
class CountryDetails(models.Model):
"""
Added a new model and added some fields with the details of the
countries
"""
_name = "country.details"
_description = 'Country Details'
country_id = fields.Many2one(string="Country", comodel_name='res.country',
help='User can select the country',
required=True)
country_code = fields.Char(related='country_id.code', string="Country Code",
help='The code of the corresponding country')
select_country_id = fields.Many2one(string='Select Country Id',
comodel_name='product.template',
help='User can select the country id')

39
website_restrict_country/models/product_template.py

@ -0,0 +1,39 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Saleekha Musthari (<https://www.cybrosys.com>)
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models
class ProductTemplate(models.Model):
"""
This class inherited to add some extra fields in the
product contains the details of countries
"""
_inherit = "product.template"
country_availability = fields.Selection([
('all', 'All'),
('selected', 'Selected')], string="Available in countries",
default='all', help='Can select the type all or selected')
country_selection_ids = fields.One2many('country.details',
'select_country_id',
string='Selected Country',
help='List of countries contains '
'corresponding products')

52
website_restrict_country/models/sale_order.py

@ -0,0 +1,52 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Saleekha Musthari (<https://www.cybrosys.com>)
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
import logging
from functools import reduce
from odoo import models
_logger = logging.getLogger(__name__)
class SaleOrder(models.Model):
"""
This class inherits to add a function to the sale.order
for fetching the common country list.
"""
_inherit = 'sale.order'
@property
def get_common_country_list(self):
"""
This function is added for fetching the common country list.
"""
lst = []
for line in self.order_line:
if line.product_id.product_tmpl_id.country_availability != 'all':
lst.append(
line.product_id.product_tmpl_id.country_selection_ids.mapped(
'country_id.id'))
try:
country_list = list(
reduce(lambda i, j: i & j, (set(x) for x in lst)))
except Exception as error:
_logger.info(f'Country list has been made empty list due to {error}')
country_list = []
return country_list

39
website_restrict_country/models/website.py

@ -0,0 +1,39 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Saleekha Musthari (<https://www.cybrosys.com>)
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models
class Website(models.Model):
"""
This class inherited to add some extra fields in the
website backend
"""
_inherit = 'website'
country_ids = fields.Many2many(string="Countries",
comodel_name='res.country', required=True,
help='Select a list of countries')
default_country_id = fields.Many2one(string="Default", required=True,
comodel_name='res.country',
help='Set a default country')
cart_message = fields.Char(string="Cart Message",
help='Custom message display if the product '
'is not available')

2
website_restrict_country/security/ir.model.access.csv

@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_country_details_user,access.country.details.user,model_country_details,base.group_user,1,1,1,1
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_country_details_user access.country.details.user model_country_details base.group_user 1 1 1 1

BIN
website_restrict_country/static/description/assets/icons/check.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
website_restrict_country/static/description/assets/icons/chevron.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

BIN
website_restrict_country/static/description/assets/icons/cogs.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
website_restrict_country/static/description/assets/icons/consultation.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
website_restrict_country/static/description/assets/icons/ecom-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

BIN
website_restrict_country/static/description/assets/icons/education-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

BIN
website_restrict_country/static/description/assets/icons/hotel-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

BIN
website_restrict_country/static/description/assets/icons/license.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
website_restrict_country/static/description/assets/icons/lifebuoy.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
website_restrict_country/static/description/assets/icons/manufacturing-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

BIN
website_restrict_country/static/description/assets/icons/pos-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

BIN
website_restrict_country/static/description/assets/icons/puzzle.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

BIN
website_restrict_country/static/description/assets/icons/restaurant-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

BIN
website_restrict_country/static/description/assets/icons/service-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

BIN
website_restrict_country/static/description/assets/icons/trading-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

BIN
website_restrict_country/static/description/assets/icons/training.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

BIN
website_restrict_country/static/description/assets/icons/update.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
website_restrict_country/static/description/assets/icons/user.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

BIN
website_restrict_country/static/description/assets/icons/wrench.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
website_restrict_country/static/description/assets/misc/categories.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
website_restrict_country/static/description/assets/misc/check-box.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
website_restrict_country/static/description/assets/misc/compass.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
website_restrict_country/static/description/assets/misc/corporate.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
website_restrict_country/static/description/assets/misc/customer-support.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
website_restrict_country/static/description/assets/misc/cybrosys-logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

BIN
website_restrict_country/static/description/assets/misc/features.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

BIN
website_restrict_country/static/description/assets/misc/logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
website_restrict_country/static/description/assets/misc/pictures.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
website_restrict_country/static/description/assets/misc/pie-chart.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
website_restrict_country/static/description/assets/misc/right-arrow.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 967 B

BIN
website_restrict_country/static/description/assets/misc/star.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
website_restrict_country/static/description/assets/misc/support.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
website_restrict_country/static/description/assets/misc/whatsapp.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
website_restrict_country/static/description/assets/modules/1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

BIN
website_restrict_country/static/description/assets/modules/2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

BIN
website_restrict_country/static/description/assets/modules/3.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

BIN
website_restrict_country/static/description/assets/modules/4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

BIN
website_restrict_country/static/description/assets/modules/5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

BIN
website_restrict_country/static/description/assets/modules/6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

BIN
website_restrict_country/static/description/assets/screenshots/hero.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 KiB

BIN
website_restrict_country/static/description/assets/screenshots/scrn1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

BIN
website_restrict_country/static/description/assets/screenshots/scrn2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

BIN
website_restrict_country/static/description/assets/screenshots/scrn3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

BIN
website_restrict_country/static/description/assets/screenshots/scrn4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

BIN
website_restrict_country/static/description/assets/screenshots/scrn5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 231 KiB

BIN
website_restrict_country/static/description/assets/screenshots/scrn6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

BIN
website_restrict_country/static/description/assets/screenshots/scrn7.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB

BIN
website_restrict_country/static/description/banner.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

BIN
website_restrict_country/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

BIN
website_restrict_country/static/description/images/checked.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
website_restrict_country/static/description/images/cybrosys.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

BIN
website_restrict_country/static/description/images/hero.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

BIN
website_restrict_country/static/description/images/odoo-powr-countdown-timer-12.0.1.0.zip

Binary file not shown.

BIN
website_restrict_country/static/description/images/product_brand_ecommerce.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

BIN
website_restrict_country/static/description/images/scrn1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

BIN
website_restrict_country/static/description/images/scrn2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

BIN
website_restrict_country/static/description/images/scrn3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

BIN
website_restrict_country/static/description/images/scrn4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

BIN
website_restrict_country/static/description/images/scrn5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 231 KiB

BIN
website_restrict_country/static/description/images/scrn6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

BIN
website_restrict_country/static/description/images/scrn7.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB

BIN
website_restrict_country/static/description/images/website_featured_products.jpeg

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 KiB

BIN
website_restrict_country/static/description/images/website_repeat_sale.jpeg

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

BIN
website_restrict_country/static/description/images/website_sale_product_quick_view.jpeg

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

659
website_restrict_country/static/description/index.html

@ -0,0 +1,659 @@
<div style="background-color: #714B67; min-height: 600px; width: 100%; padding: 15px; position: relative;">
<!-- TITLE BAR -->
<div
style="border-bottom: 1px solid #875A7B; padding: 15px; display: flex; justify-content: space-between; align-items: center;">
<img src="assets/misc/cybrosys-logo.png" width="42" height="42"
style="width: 42px; height: 42px;"/>
<div>
<div style="color: #7C7BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Community
</div>
<div style="color: #875A7B; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Enterprise
</div>
<div style="color: #017E84; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Odoo.sh
</div>
</div>
</div>
<!-- END OF TITLE BAR -->
<!-- APP HERO -->
<h1 style="color: #FFFFFF; font-weight: bolder; font-size: 50px; text-align: center; margin-top: 50px;">
Website Restrict Country</h1>
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;">
Website Restrict Country for Products that are Unavailable in
Certain Countries.</p>
<!-- END OF APP HERO -->
<img src="assets/screenshots/hero.gif"
style="width: 75%; height: auto; position: absolute; margin-left: auto; margin-right: auto; top: 45%; left: 12%; right: auto;"/>
</div>
<!-- NAVIGATION SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px; margin-top: 300px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/compass.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Explore This
Module</h2>
</div>
<div class="row my-4" style="font-family: 'Montserrat', sans-serif;">
<div class="col-sm-12 col-md-6 my-3">
<a href="#overview">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Overview</span>
<span
style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">Learn
more about this
module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
<div class="col-sm-12 col-md-6 my-3">
<a href="#features">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Features</span>
<span
style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View
features of this
module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
<div class="col-sm-12 col-md-6 my-3">
<a href="#screenshots">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Screenshots</span>
<span
style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">See
key screenshots of this module
</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
</div>
<!-- END OF NAVIGATION SECTION -->
<!-- OVERVIEW SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="overview">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/pie-chart.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Overview
</h2>
</div>
<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">
This module allows you to set
restrictions for products that are unavailable in
certain countries.And You can customise the cart and
checkout message that is displayed. Customers can select
from the countries you specify in the Odoo backend
</div>
</div>
<!-- END OF OVERVIEW SECTION -->
<!-- FEATURES SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="features">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/features.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Features
</h2>
</div>
<div class="row"
style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;">
<div class="col-sm-12 col-md-6">
<div class="d-flex align-items-center"
style="margin-top: 40px; margin-bottom: 40px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Countries can be added in the website</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Restrict ordering unavailable products</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Top Navigation bar with country list </span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> Direct BUY NOW is restricted</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">custom messages for products that are unavailable.</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> Restrict the checkout process.</span>
</div>
</div>
</div>
</div>
<!-- END OF FEATURES SECTION -->
<!-- SCREENSHOTS SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;"
id="screenshots">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/pictures.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Screenshots
</h2>
</div>
<div class="row">
<div class="col-sm-12">
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Set Countries in the backend</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
User can configure the countries in the website odoo
backend.</p>
<img src="assets/screenshots/scrn1.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
custom messages for products that are unavailable</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
User can add custom messages for products that are
unavailable.</p>
<img src="assets/screenshots/scrn2.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
product configuration for all or a specific country</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
product configuration for all or a specific country in the
backend.</p>
<img src="assets/screenshots/scrn3.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Top Navigation bar with country list </h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Top Navigation bar will displays selected country list.</p>
<img src="assets/screenshots/scrn4.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Direct BUY NOW is restricted</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
If the product is not available, users are restricted from using
the direct "Buy Now" option.</p>
<img src="assets/screenshots/scrn5.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Custom message for the unavailable product in a country</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
On the cart page, create a custom message for the unavailable
product in a country.</p>
<img src="assets/screenshots/scrn6.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Restrict the checkout process</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
When the product is restricted in this country, the checkout process is restricted.</p>
<img src="assets/screenshots/scrn7.png" class="img-thumbnail">
</div>
</div>
</div>
<!-- END OF SCREENSHOTS SECTION -->
<!-- RELATED PRODUCTS -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/categories.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Related
Products
</h2>
</div>
<div class="row">
<div class="col-sm-12">
<div id="demo1" class="row carousel slide" data-ride="carousel">
<!-- The slideshow -->
<div class="carousel-inner" style="padding: 30px;">
<div class="carousel-item" style="min-height: 198.656px;">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/website_return_management/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/1.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/website_product_attachments/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/2.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/website_portal_events/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/3.jpg">
</div>
</a>
</div>
</div>
<div class="carousel-item active"
style="min-height: 198.656px;">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/website_hide_variants/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/4.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/payment_proof_attachment/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/5.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/odoo_website_helpdesk/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/6.png">
</div>
</a>
</div>
</div>
</div>
<!-- Left and right controls -->
<a class="carousel-control-prev" href="#demo1" data-slide="prev"
style="width:35px; color:#000"> <span
class="carousel-control-prev-icon"><i
class="fa fa-chevron-left"
style="font-size:24px"></i></span>
</a> <a class="carousel-control-next" href="#demo1"
data-slide="next" style="width:35px; color:#000">
<span class="carousel-control-next-icon"><i
class="fa fa-chevron-right"
style="font-size:24px"></i></span>
</a>
</div>
</div>
</div>
<!-- END OF RELATED PRODUCTS -->
<!-- OUR SERVICES -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/star.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Our Services
</h2>
</div>
<div class="container my-5">
<div class="row">
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #1dd1a1 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/cogs.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Customization</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #ff6b6b !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/wrench.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Implementation</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #6462CD !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/lifebuoy.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Support</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #ffa801 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/user.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Hire
Odoo
Developer</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #54a0ff !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/puzzle.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Integration</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #6d7680 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/update.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Migration</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #786fa6 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/consultation.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Consultancy</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #f8a5c2 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/training.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Implementation</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #e6be26 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/license.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Licensing Consultancy</h6>
</div>
</div>
</div>
<!-- END OF END OF OUR SERVICES -->
<!-- OUR INDUSTRIES -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/corporate.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Our
Industries
</h2>
</div>
<div class="container my-5">
<div class="row">
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/trading-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Trading
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easily procure
and
sell your products</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/pos-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
POS
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easy
configuration
and convivial experience</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/education-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Education
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
A platform for
educational management</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/manufacturing-black.png"
class="img-responsive mb-3" height="48px"
width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Manufacturing
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Plan, track and
schedule your operations</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/ecom-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
E-commerce &amp; Website
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Mobile
friendly,
awe-inspiring product pages</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/service-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Service Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Keep track of
services and invoice</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/restaurant-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Restaurant
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Run your bar or
restaurant methodically</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/hotel-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Hotel Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
An
all-inclusive
hotel management application</p>
</div>
</div>
</div>
</div>
<!-- END OF END OF OUR INDUSTRIES -->
<!-- SUPPORT -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/customer-support.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Support
</h2>
</div>
<div class="container mt-5">
<div class="row">
<div class="col-sm-12 col-md-6">
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;">
<div class="mr-4"
style="background-color: #714B67; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;">
<img src="assets/misc/support.png" height="48" width="48"
style="width: 42px; height: 42px;"/>
</div>
<div>
<h4>Need Help?</h4>
<p style="line-height: 100%;">Got questions or need help?
Get in touch.</p>
<a href="mailto:odoo@cybrosys.com">
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;">
odoo@cybrosys.com</p>
</a>
</div>
</div>
</div>
<div class="col-sm-12 col-md-6">
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;">
<div class="mr-4"
style="background-color: #2AC44D; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;">
<img src="assets/misc/whatsapp.png" height="52" width="52"
style="width: 52px; height: 52px;"/>
</div>
<div>
<h4>WhatsApp</h4>
<p style="line-height: 100%;">Say hi to us on WhatsApp!</p>
<a href="https://api.whatsapp.com/send?phone=918606827707">
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;">
+91 86068
27707</p>
</a>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 my-5 d-flex justify-content-center align-items-center">
<img src="assets/misc/logo.png" width="144" height="31"
style="width:144px; height: 31px; margin-top: 40px;"/>
</div>
</div>
</div>
<!-- END OF SUPPORT -->

22
website_restrict_country/static/src/js/country_selection.js

@ -0,0 +1,22 @@
odoo.define('website_restrict_company.countries', function(require) {
"use strict";
const ajax = require('web.ajax');
var publicWidget = require('web.public.widget');
// Extended PublicWidget
publicWidget.registry.Country_detail = publicWidget.Widget.extend({
selector: ".js_countrymenu",
events: {
'click .js_countries': 'OnClickChangeCountry',
},
// Added a Click function to select the country
OnClickChangeCountry: function(e) {
event.preventDefault(e);
var country_id = e.currentTarget.dataset['country_id']
var self = this;
ajax.jsonRpc('/website/countries', 'call', { 'country_id': country_id})
.then(result => {
$(e.currentTarget).parent().parent().html(result)
});
},
});
});

33
website_restrict_country/views/product_template_views.xml

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!--product.template inherited views-->
<record id="product_template_only_form_view" model="ir.ui.view">
<field name="name">
product.template.view.form.inherit.website.restrict.country
</field>
<field name="model">product.template</field>
<field name="inherit_id"
ref="product.product_template_only_form_view"/>
<field name="arch" type="xml">
<xpath expr="//notebook" position="inside">
<page name="countries" string="Countries">
<group>
<field name="country_availability" widget="radio"/>
</group>
<group>
<field name="country_selection_ids"
attrs="{'invisible': [('country_availability', '!=', 'selected')]}">
<tree string="Selected Country"
editable="bottom">
<field name="select_country_id"
invisible="1"/>
<field name="country_id"/>
<field name="country_code"/>
</tree>
</field>
</group>
</page>
</xpath>
</field>
</record>
</odoo>

140
website_restrict_country/views/website_templates.xml

@ -0,0 +1,140 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!--website_sale.template_header_default inherited template -->
<template id="template_header_default"
inherit_id="website_sale.template_header_default">
<xpath expr="//t[@t-call='website_sale.header_cart_link']"
position="after">
<t t-set="countries"
t-value="request.env['website'].browse(request.website.id).country_ids"/>
<t t-set="country"
t-value="request.env['website'].browse(request.website.id).default_country_id"/>
<div class="country_select_m">
<t t-call="website_restrict_country.country_selection"/>
</div>
</xpath>
</template>
<!--Templates for Country Selection menu-->
<template id="country_selection">
<t t-if="country">
<li class="nav-item dropdown o_no_autohide_item js_countrymenu">
<a href="#" role="button" data-bs-toggle="dropdown" id="a_select"
class="dropdown-toggle nav-link fw-bold">
<img id="img_code_vat" class="js_img_country_code"
t-att-src="country.image_url"
width="30" height="20"/>
</a>
<div id="country_selection_menu" role="menu"
class="dropdown-menu ">
<t t-foreach="countries" t-as="country">
<a href="#" class="dropdown-item js_countries"
t-att-id="country.code"
t-att-data-country_id="country.id"
t-att-data-country_code="country.code"
t-att-data-country_image_url="country.image_url">
<img t-att-data-country-id="country.id"
t-att-src="country.image_url"
width="30" height="20"/>
<span t-esc="country.name"/>
</a>
</t>
</div>
</li>
</t>
</template>
<!--website_sale.suggested_products_list inherited template -->
<template id="cart_summary_inherit_website_country_restriction"
inherit_id="website_sale.suggested_products_list">
<xpath expr="//td[hasclass('td-product_name')]" position="inside">
<t t-set="country_availability"
t-value="line.product_id.product_tmpl_id.country_availability"/>
<t t-set="product_select_country"
t-value="line.product_id.product_tmpl_id.country_selection_ids.mapped('country_id').ids"/>
<t t-set="current_select_country"
t-value="request.env['website'].get_current_website().default_country_id.id"/>
<t t-set="message_cart"
t-value="request.env['website'].get_current_website().cart_message"/>
<t t-if="current_select_country not in product_select_country and country_availability == 'selected'">
<div class="text-warning">
<t t-esc="message_cart"/>
</div>
</t>
</xpath>
</template>
<!--website_sale.product_buy_now inherited template -->
<template id="buy_now_restriction" name="Buy Now Restriction"
inherit_id="website_sale.product_buy_now">
<xpath expr="//a[contains(@t-attf-class, 'o_we_buy_now')]"
position="replace">
<t t-set="current_select_country"
t-value="request.env['website'].get_current_website().default_country_id.id"/>
<t t-set="product_select_country"
t-value="product.country_selection_ids.mapped('country_id').ids"/>
<t t-if="current_select_country in product_select_country">
<a role="button"
t-attf-class="btn btn-outline-primary o_we_buy_now ms-1 #{'btn-lg' if ctaSizeBig else ''}"
href="#">
<i class="fa fa-bolt me-2"/>
<span style="font-weight:bold">BUY NOW</span>
</a>
</t>
</xpath>
</template>
<!-- website_sale.short_cart_summary inherited template -->
<template id="checkout_process_country_restriction"
name="Checkout Process Restriction"
inherit_id="website_sale.short_cart_summary">
<xpath expr="//a[hasclass('d-xl-inline-block')]" position="replace">
<t t-set="availability"
t-value="website_sale_order.website_order_line.mapped('product_id.product_tmpl_id.country_availability')"/>
<t t-set="product_select_country"
t-value="website_sale_order.get_common_country_list()"/>
<t t-set="current_select_country"
t-value="request.env['website'].get_current_website().default_country_id.id"/>
<t t-if="all(country=='all' for country in availability) or current_select_country in product_select_country">
<a role="button"
t-if="website_sale_order and website_sale_order.website_order_line"
class="btn btn-secondary float-end d-none d-xl-inline-block"
t-attf-href="{{redirect_url}}">
<t t-if="redirect_to_sign_in">
<span>Sign In</span>
<span class="fa fa-sign-in"/>
</t>
<t t-else="">
<span>Proceed to Checkout</span>
<span class="fa fa-chevron-right"/>
</t>
</a>
</t>
</xpath>
</template>
<!-- website_sale.cart inherited template -->
<template id="proceed_to_checkout_country_restriction"
name="Proceed to Checkout Restriction"
inherit_id="website_sale.cart">
<xpath expr="//a[hasclass('float-end')]" position="replace">
<t t-set="availability"
t-value="website_sale_order.website_order_line.mapped('product_id.product_tmpl_id.country_availability')"/>
<t t-set="product_select_country"
t-value="website_sale_order.website_order_line.product_id.product_tmpl_id.country_selection_ids.mapped('country_id').ids"/>
<t t-set="current_select_country"
t-value="request.env['website'].get_current_website().default_country_id.id"/>
<t t-if="all(country=='all' for country in availability) or current_select_country in product_select_country">
<a class="btn btn-primary float-end"
role="button"
t-attf-href="{{redirect_url}}">
<t t-if="redirect_to_sign_in">
<span>Sign In</span>
<span class="fa fa-sign-in"/>
</t>
<t t-else="">
<span>Process
Checkout
</span>
<span class="fa fa-chevron-right"/>
</t>
</a>
</t>
</xpath>
</template>
</odoo>

38
website_restrict_country/views/website_views.xml

@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<!--website inherited views-->
<record id="view_website_form" model="ir.ui.view">
<field name="name">website.view.form.inherit.website.restrict.country
</field>
<field name="model">website</field>
<field name="inherit_id" ref="website.view_website_form"/>
<field name="arch" type="xml">
<xpath expr="//notebook" position="inside">
<page name="countries_selection" string="Countries">
<h5 class="text-muted">SELECT COUNTRIES
</h5>
<br/>
<group>
<group>
<field name="country_ids" widget="many2many_tags"
options="{'no_create': True, 'no_open': True}"/>
</group>
</group>
<group>
<field name="default_country_id"
domain="[('id','in', country_ids)]"
attrs="{'required': [('country_ids', '=', True)]}"/>
</group>
<br/>
<h5 class="text-muted">WHEN A PRODUCT IS NOT AVAILABLE IN A
COUNTRY, MESSAGES ARE DISPLAYED
</h5>
<br/>
<group>
<field name="cart_message"/>
</group>
</page>
</xpath>
</field>
</record>
</odoo>
Loading…
Cancel
Save