Skip to content

Commit

Permalink
[13.0] [IMP] product_management_group: Fix conflict with product quot…
Browse files Browse the repository at this point in the history
…ations.
  • Loading branch information
nicomacr authored and azacchino committed Dec 3, 2020
1 parent 4233b4c commit 84e0df6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions product_management_group/models/ir_model_access.py
Expand Up @@ -20,6 +20,9 @@ def check(
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'):
return True

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

0 comments on commit 84e0df6

Please sign in to comment.