Skip to content

Commit

Permalink
Cancel purchase order - Error object (#6137)
Browse files Browse the repository at this point in the history
Fixes #6136

Error introduced in #6017
  • Loading branch information
matmair authored Dec 27, 2023
1 parent 1cdcac0 commit 88f86ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions InvenTree/order/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 88f86ef

Please sign in to comment.