From 00edbeb8476c5be0ca2c07401b971163c76533a0 Mon Sep 17 00:00:00 2001 From: Mohammad Kiani Date: Thu, 28 Aug 2025 03:50:50 +0330 Subject: [PATCH] Fix typo in device activation condition in POSDeviceViewSet --- apps/pos_device/pos/api/v1/viewsets/device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/pos_device/pos/api/v1/viewsets/device.py b/apps/pos_device/pos/api/v1/viewsets/device.py index c0b0a64..ddff76d 100644 --- a/apps/pos_device/pos/api/v1/viewsets/device.py +++ b/apps/pos_device/pos/api/v1/viewsets/device.py @@ -66,7 +66,7 @@ class POSDeviceViewSet(viewsets.ModelViewSet, POSDeviceMixin): device.is_activated = True 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 device_owner_org = self.get_device_organization()