diff --git a/product_management_group/__manifest__.py b/product_management_group/__manifest__.py index 12c3300a7..e604b009d 100644 --- a/product_management_group/__manifest__.py +++ b/product_management_group/__manifest__.py @@ -19,7 +19,7 @@ ############################################################################## { 'name': 'Products Management Group', - 'version': "17.0.1.0.0", + 'version': "18.0.1.0.0", 'category': 'base.module_category_knowledge_management', 'author': 'ADHOC SA', 'website': 'www.adhoc.com.ar', @@ -30,5 +30,5 @@ 'data': [ 'security/product_management_security.xml', ], - 'installable': False, + 'installable': True, } diff --git a/product_management_group/models/ir_model_access.py b/product_management_group/models/ir_model_access.py index b96c55ddb..b8f8522ad 100644 --- a/product_management_group/models/ir_model_access.py +++ b/product_management_group/models/ir_model_access.py @@ -25,7 +25,7 @@ def check(self, model, mode='read', raise_exception=True): if mode != 'read' and model_name in [ 'product.template', 'product.product']: - if self.env['res.users'].has_group( + if self.env.user.has_group( 'product_management_group.group_products_management'): return True elif raise_exception: