Cancel purchase order - Error object (#6137)

Fixes #6136

Error introduced in https://github.com/inventree/InvenTree/pull/6017
This commit is contained in:
Matthias Mair 2023-12-27 11:50:46 +01:00 committed by GitHub
parent 1cdcac09be
commit 88f86efd4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -247,7 +247,7 @@ class PurchaseOrderCancelSerializer(serializers.Serializer):
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 @@ class SalesOrderCancelSerializer(serializers.Serializer):
order = self.context['order']
return {
'can_cancel': order.can_cancel(),
'can_cancel': order.can_cancel,
}
def save(self):