This commit is contained in:
Oliver Walters 2020-04-25 13:31:42 +10:00
parent 66b6036827
commit 4e40d92db7

View File

@ -315,7 +315,6 @@ class SalesOrder(Order):
def ship_order(self, user): def ship_order(self, user):
""" Mark this order as 'shipped' """ """ Mark this order as 'shipped' """
# The order can only be 'shipped' if the current status is PENDING # The order can only be 'shipped' if the current status is PENDING
if not self.status == SalesOrderStatus.PENDING: if not self.status == SalesOrderStatus.PENDING:
raise ValidationError({'status': _("SalesOrder cannot be shipped as it is not currently pending")}) raise ValidationError({'status': _("SalesOrder cannot be shipped as it is not currently pending")})