Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIG] product_management_group: Migration to 18.0 #686

Open
wants to merge 1 commit into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions product_management_group/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -30,5 +30,5 @@
'data': [
'security/product_management_security.xml',
],
'installable': False,
'installable': True,
}
2 changes: 1 addition & 1 deletion product_management_group/models/ir_model_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down