From b9b8fc8c74ed476a8bda695d321a4a04eda8d57e Mon Sep 17 00:00:00 2001 From: Cybrosys Technologies Date: Tue, 15 Apr 2025 10:50:10 +0530 Subject: [PATCH] APR 15: [FIX] Bug fixed 'product_restriction_users' --- product_restriction_users/__manifest__.py | 2 +- product_restriction_users/doc/RELEASE_NOTES.md | 5 +++++ product_restriction_users/models/res_users.py | 2 +- product_restriction_users/views/product_template_views.xml | 1 - product_restriction_users/views/res_users_views.xml | 3 --- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/product_restriction_users/__manifest__.py b/product_restriction_users/__manifest__.py index d84748420..3b7646e35 100644 --- a/product_restriction_users/__manifest__.py +++ b/product_restriction_users/__manifest__.py @@ -21,7 +21,7 @@ ################################################################################ { 'name': "Product Restriction Users", - 'version': '18.0.1.0.0', + 'version': '18.0.1.0.1', 'category': "Inventory", 'summary': "Restrict products for users based on products and categories.", 'description': """This module used to allow products to user or only diff --git a/product_restriction_users/doc/RELEASE_NOTES.md b/product_restriction_users/doc/RELEASE_NOTES.md index f9cb2c475..b9b7f3f61 100644 --- a/product_restriction_users/doc/RELEASE_NOTES.md +++ b/product_restriction_users/doc/RELEASE_NOTES.md @@ -4,3 +4,8 @@ #### Version 18.0.1.0.0 #### ADD - Initial commit for Product Restriction Users + +#### 10.04.2025 +#### Version 18.0.1.0.1 +##### FIX +- Fixed errors in Odoo SH testing \ No newline at end of file diff --git a/product_restriction_users/models/res_users.py b/product_restriction_users/models/res_users.py index e8f6d50a4..f2efe78b5 100644 --- a/product_restriction_users/models/res_users.py +++ b/product_restriction_users/models/res_users.py @@ -88,7 +88,7 @@ class ResUsers(models.Model): product.sudo().write( {'restrict_user_ids': [ Command.unlink(user.id)]}) - return res + return res def _compute_is_admin(self): """ Compute the value of is_admin based on the user id admin or not""" diff --git a/product_restriction_users/views/product_template_views.xml b/product_restriction_users/views/product_template_views.xml index 1e0989173..46baaa8c8 100644 --- a/product_restriction_users/views/product_template_views.xml +++ b/product_restriction_users/views/product_template_views.xml @@ -12,7 +12,6 @@ - diff --git a/product_restriction_users/views/res_users_views.xml b/product_restriction_users/views/res_users_views.xml index 1036416ff..24cc34b5e 100644 --- a/product_restriction_users/views/res_users_views.xml +++ b/product_restriction_users/views/res_users_views.xml @@ -7,9 +7,6 @@ res.users - - -