changeset 5e141e192705 in modules/stock_location_move:default
details: 
https://hg.tryton.org/modules/stock_location_move?cmd=changeset;node=5e141e192705
description:
        Rename shipment states from cancel to cancelled

        issue8927
        review301711002
diffstat:

 stock.py |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r aa026c3885b2 -r 5e141e192705 stock.py
--- a/stock.py  Mon May 04 12:31:18 2020 +0200
+++ b/stock.py  Sat Jun 06 10:17:30 2020 +0100
@@ -60,7 +60,7 @@
         today = Date.today()
         shipments = ShipmentInternal.search([
                 ('locations', '!=', None),
-                ('state', 'not in', ['cancel', 'done']),
+                ('state', 'not in', ['cancelled', 'done']),
                 ['OR', [
                         ('planned_date', '<=', date),
                         ('planned_date', '>=', today),
@@ -207,7 +207,7 @@
 
     @classmethod
     @ModelView.button
-    @Workflow.transition('cancel')
+    @Workflow.transition('cancelled')
     @clear_location_assignation
     def cancel(cls, shipments):
         super(ShipmentInternal, cls).cancel(shipments)

Reply via email to