From 6417d6dcf50064ec0fbfeb5522c7798336c6139f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 31 Oct 2018 18:10:32 +0100 Subject: [PATCH] Set cancel state for the transition of ShipmentOut.cancel The changeset b72e1e9b9097 put the wrong value during the refactoring. issue7827 review70441002 --- stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stock.py b/stock.py index e2e5ab882a..fab9249687 100644 --- a/stock.py +++ b/stock.py @@ -58,7 +58,7 @@ class ShipmentOut(metaclass=PoolMeta): @classmethod @ModelView.button - @Workflow.transition('done') + @Workflow.transition('cancel') @process_sale('outgoing_moves') def cancel(cls, shipments): super(ShipmentOut, cls).cancel(shipments)