From 7391f33a9719a11a02d097d90c17d52317b7ac1c Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 10 Aug 2023 21:13:46 +1000 Subject: [PATCH] Do not enforce units for part parameters (#5423) Backport of #5160 --- InvenTree/part/models.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/InvenTree/part/models.py b/InvenTree/part/models.py index 7008e76b17..b249f1b2c8 100644 --- a/InvenTree/part/models.py +++ b/InvenTree/part/models.py @@ -3528,15 +3528,6 @@ class PartParameter(MetadataMixin, models.Model): super().clean() - # Validate the parameter data against the template units - if self.template.units: - try: - InvenTree.conversion.convert_physical_value(self.data, self.template.units) - except ValidationError as e: - raise ValidationError({ - 'data': e.message - }) - # Validate the parameter data against the template choices if choices := self.template.get_choices(): if self.data not in choices: