Skip to content

Commit

Permalink
[FIX] purchase_quotation_products: make all fields not editable
Browse files Browse the repository at this point in the history
  • Loading branch information
vib-adhoc authored and jjscarafia committed Apr 17, 2023
1 parent 196b684 commit 02b1368
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions purchase_quotation_products/models/product_product.py
Expand Up @@ -92,8 +92,6 @@ def _get_view(self, view_id=None, view_type='form', **options):

# make all fields not editable
for node in arch.xpath("//field[@name]"):
if not node.get("modifiers"):
continue
node.set('readonly', '1')
modifiers = json.loads(node.get("modifiers") or "{}")
modifiers['readonly'] = True
Expand Down

0 comments on commit 02b1368

Please sign in to comment.