Fix typo in device activation condition in POSDeviceViewSet

This commit is contained in:
2025-08-28 03:50:50 +03:30
parent 1cf548f487
commit 00edbeb847

View File

@@ -66,7 +66,7 @@ class POSDeviceViewSet(viewsets.ModelViewSet, POSDeviceMixin):
device.is_activated = True device.is_activated = True
device.save() device.save()
if device.is_activatedand and device.assigned_state: if device.is_activated and device.assigned_state:
# when device is logged in, its has an organization owner client, if not it will show error # when device is logged in, its has an organization owner client, if not it will show error
device_owner_org = self.get_device_organization() device_owner_org = self.get_device_organization()