Skip to content

Commit

Permalink
[MIG] sale_exception_price_security: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vib-adhoc authored and nicomacr committed Feb 14, 2023
1 parent 854c16e commit 1bd8b7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sale_exception_price_security/__manifest__.py
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Sale Exception - Price Security Integration',
'version': "15.0.1.0.0",
'version': "16.0.1.0.0",
'author': 'ADHOC SA',
'website': 'www.adhoc.com.ar',
'license': 'AGPL-3',
Expand All @@ -32,6 +32,6 @@
],
'demo': [
],
'installable': False,
'installable': True,
'auto_install': True,
}
2 changes: 1 addition & 1 deletion sale_exception_price_security/models/sale_order_line.py
Expand Up @@ -15,7 +15,7 @@ def check_discount(self):
def check_discount_ok(self):
self.ensure_one()
# disable constrant
if (self.user_has_groups('price_security.group_restrict_prices'
if (self.user_has_groups('price_security.group_only_view'
) and not self.product_can_modify_prices):
# if something, then we have an error, not ok
if self.env.user.check_discount(
Expand Down

0 comments on commit 1bd8b7a

Please sign in to comment.