From d9d51ac9a98e1f99483a018d8212516eff94581a Mon Sep 17 00:00:00 2001 From: AjmalCybro Date: Mon, 9 Dec 2024 13:32:16 +0530 Subject: [PATCH] Dec 9 [UPDT] : Updated 'website_restrict_country' --- website_restrict_country/__manifest__.py | 2 +- website_restrict_country/doc/RELEASE_NOTES.md | 6 +++ website_restrict_country/models/website.py | 1 + .../views/website_templates.xml | 50 ++++++++++--------- 4 files changed, 34 insertions(+), 25 deletions(-) diff --git a/website_restrict_country/__manifest__.py b/website_restrict_country/__manifest__.py index a223efb9b..42f1a19fd 100644 --- a/website_restrict_country/__manifest__.py +++ b/website_restrict_country/__manifest__.py @@ -20,7 +20,7 @@ ############################################################################# { 'name': 'Website Restrict Country', - 'version': '16.0.1.0.0', + 'version': '16.0.1.1.0', 'category': 'Website', 'summary': """ The Website Restrict Country module allows you to set restrictions for products that are unavailable in certain countries. diff --git a/website_restrict_country/doc/RELEASE_NOTES.md b/website_restrict_country/doc/RELEASE_NOTES.md index 500eb15f3..8d1295655 100644 --- a/website_restrict_country/doc/RELEASE_NOTES.md +++ b/website_restrict_country/doc/RELEASE_NOTES.md @@ -4,3 +4,9 @@ #### Version 16.0.1.0.0 ##### ADD - Initial Commit for Website Restrict Country + + +#### 11.01.2024 +#### Version 16.0.1.1.0 +##### UPDATE +- Fixed the issues in the 'Buy now' button and cart page \ No newline at end of file diff --git a/website_restrict_country/models/website.py b/website_restrict_country/models/website.py index 2f063acdc..433973a49 100644 --- a/website_restrict_country/models/website.py +++ b/website_restrict_country/models/website.py @@ -35,5 +35,6 @@ class Website(models.Model): comodel_name='res.country', help='Set a default country') cart_message = fields.Char(string="Cart Message", + default='This product is not available in your country', help='Custom message display if the product ' 'is not available') diff --git a/website_restrict_country/views/website_templates.xml b/website_restrict_country/views/website_templates.xml index 0ced6b6cf..b54253b94 100644 --- a/website_restrict_country/views/website_templates.xml +++ b/website_restrict_country/views/website_templates.xml @@ -18,28 +18,29 @@ @@ -70,7 +71,7 @@ t-value="request.env['website'].get_current_website().default_country_id.id"/> - + @@ -80,6 +81,7 @@ +