Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Website
  3. Website Restrict Country v 16.0
  4. Sales Conditions FAQ

Website Restrict Country

by Cybrosys Techno Solutions https://www.cybrosys.com
Odoo
v 16.0 Third Party 122
Download for v 16.0 Deploy on Odoo.sh
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Inventory (stock)
• Sales (sale_management)
• eCommerce (website_sale)
• Discuss (mail)
• Invoicing (account)
• Website (website)
Lines of code 307
Technical Name website_restrict_country
LicenseAGPL-3
Websitehttps://www.cybrosys.com
Versions 15.0 16.0 17.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Inventory (stock)
• Sales (sale_management)
• eCommerce (website_sale)
• Discuss (mail)
• Invoicing (account)
• Website (website)
Lines of code 307
Technical Name website_restrict_country
LicenseAGPL-3
Websitehttps://www.cybrosys.com
Versions 15.0 16.0 17.0
Community
Enterprise
Odoo.sh

Website Restrict Country

Website Restrict Country for Products that are Unavailable in Certain Countries.

Explore This Module

Overview Learn more about this module
Features View features of this module
Screenshots See key screenshots of this module

Overview

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

Features

Countries can be added in the website
Restrict ordering unavailable products
Top Navigation bar with country list
Direct BUY NOW is restricted
custom messages for products that are unavailable.
Restrict the checkout process.

Screenshots

Set Countries in the backend

User can configure the countries in the website odoo backend.

custom messages for products that are unavailable

User can add custom messages for products that are unavailable.

product configuration for all or a specific country

product configuration for all or a specific country in the backend.

Top Navigation bar with country list

Top Navigation bar will displays selected country list.

Direct BUY NOW is restricted

If the product is not available, users are restricted from using the direct "Buy Now" option.

Custom message for the unavailable product in a country

On the cart page, create a custom message for the unavailable product in a country.

Restrict the checkout process

When the product is restricted in this country, the checkout process is restricted.

Related Products

Our Services

Odoo Customization
Odoo Implementation
Odoo Support
Hire Odoo Developer
Odoo Integration
Odoo Migration
Odoo Consultancy
Odoo Implementation
Odoo Licensing Consultancy

Our Industries

Trading

Easily procure and sell your products

POS

Easy configuration and convivial experience

Education

A platform for educational management

Manufacturing

Plan, track and schedule your operations

E-commerce & Website

Mobile friendly, awe-inspiring product pages

Service Management

Keep track of services and invoice

Restaurant

Run your bar or restaurant methodically

Hotel Management

An all-inclusive hotel management application

Support

Need Help?

Got questions or need help? Get in touch.

odoo@cybrosys.com

WhatsApp

Say hi to us on WhatsApp!

+91 86068 27707

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.
  • Ratings
  • Discuss
not working in v16
by
Yung-Wa Ng
on 12/6/24, 5:55 AM

Original message was posting in v17. But the problem occurs in v16.


Hi Cybrosys,


I tried to install your module in new v16 database. I fill in the country on website and product. The moment I try to add the product to cart, i get this error. Any Idea?


RPC_ERROR

Odoo Server Error

Traceback (most recent call last):

  File "<1539>", line 103, in template_1539

  File "<1539>", line 57, in template_1539_content

TypeError: 'list' object is not callable


The above exception was the direct cause of the following exception:


Traceback (most recent call last):

  File "/home/odoo/src/odoo/odoo/http.py", line 1652, in _serve_db

    return service_model.retrying(self._serve_ir_http, self.env)

  File "/home/odoo/src/odoo/odoo/service/model.py", line 133, in retrying

    result = func()

  File "/home/odoo/src/odoo/odoo/http.py", line 1679, in _serve_ir_http

    response = self.dispatcher.dispatch(rule.endpoint, args)

  File "/home/odoo/src/odoo/odoo/http.py", line 1883, in dispatch

    result = self.request.registry['ir.http']._dispatch(endpoint)

  File "/home/odoo/src/odoo/addons/website/models/ir_http.py", line 237, in _dispatch

    response = super()._dispatch(endpoint)

  File "/home/odoo/src/odoo/odoo/addons/base/models/ir_http.py", line 154, in _dispatch

    result = endpoint(**request.params)

  File "/home/odoo/src/odoo/odoo/http.py", line 734, in route_wrapper

    result = endpoint(self, *args, **params_ok)

  File "/home/odoo/src/odoo/addons/website_sale/controllers/main.py", line 872, in cart_update_json

    values['website_sale.short_cart_summary'] = request.env['ir.ui.view']._render_template(

  File "/home/odoo/src/odoo/addons/website/models/ir_ui_view.py", line 419, in _render_template

    return super()._render_template(template, values=values)

  File "/home/odoo/src/odoo/odoo/addons/base/models/ir_ui_view.py", line 2129, in _render_template

    return self.env['ir.qweb']._render(template, values)

  File "/home/odoo/src/odoo/odoo/tools/profiler.py", line 294, in _tracked_method_render

    return method_render(self, template, values, **options)

  File "/home/odoo/src/odoo/odoo/addons/base/models/ir_qweb.py", line 587, in _render

    result = ''.join(rendering)

  File "<1539>", line 109, in template_1539

odoo.addons.base.models.ir_qweb.QWebException: Error while render the template

TypeError: 'list' object is not callable

Template: website_sale.short_cart_summary

Path: /t/div/div/div/t[6]

Node: <t t-set="current_select_country" t-value="request.env[\'website\'].get_current_website().default_country_id.id"/>


The above server error caused the following client error:

null

Grt

Yung-Wa

Re: not working in v16
by
Cybrosys Technologies
on 12/10/24, 12:36 AM Author

Thank you for your feedback! We’re happy to inform you that this issue has been resolved. Please get the latest version.


There are no comments yet!
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with