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 |
License | AGPL-3 |
Website | https://www.cybrosys.com |
Versions | 15.0 16.0 17.0 |
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 |
License | AGPL-3 |
Website | https://www.cybrosys.com |
Versions | 15.0 16.0 17.0 |

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


Explore This Module

Overview

Features







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


Say hi to us on WhatsApp!
+91 86068 27707

Please log in to comment on this module
Report comment
Any abuse of this reporting system will be penalizednot working in v16
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
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!