mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Cancel purchase order - Error object (#6137)
Fixes #6136 Error introduced in https://github.com/inventree/InvenTree/pull/6017
This commit is contained in:
parent
1cdcac09be
commit
88f86efd4c
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user