From 88f86efd4cb3abc5430ccdfd8fe7a829b3163c86 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Wed, 27 Dec 2023 11:50:46 +0100 Subject: [PATCH] Cancel purchase order - Error object (#6137) Fixes #6136 Error introduced in https://github.com/inventree/InvenTree/pull/6017 --- InvenTree/order/serializers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InvenTree/order/serializers.py b/InvenTree/order/serializers.py index b512642537c7..2d2b3a53d0d6 100644 --- a/InvenTree/order/serializers.py +++ b/InvenTree/order/serializers.py @@ -247,7 +247,7 @@ def get_context_data(self): self.order = self.context['order'] return { - 'can_cancel': self.order.can_cancel(), + 'can_cancel': self.order.can_cancel, } def save(self): @@ -1219,7 +1219,7 @@ def get_context_data(self): order = self.context['order'] return { - 'can_cancel': order.can_cancel(), + 'can_cancel': order.can_cancel, } def save(self):