Skip to content

Commit

Permalink
[FIX] product_management_group: restriction of archiving products of …
Browse files Browse the repository at this point in the history
…portal users
  • Loading branch information
lef-adhoc committed May 7, 2024
1 parent a4d492a commit 392e250
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions product_management_group/models/ir_model_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ def check(self, model, mode='read', raise_exception=True):
model_name = model.model
else:
model_name = model
# we need to use this flag to know when the operation is from this modules
if self._context.get('sale_quotation_products') or self._context.get('purchase_quotation_products') or self._context.get('product_management_group_bypass') or self.env.is_superuser():
return True

if mode != 'read' and model_name in [
'product.template', 'product.product']:
Expand Down

0 comments on commit 392e250

Please sign in to comment.