From 6130acf3fdd58a280ccee64ffbc8c80ddf7cd946 Mon Sep 17 00:00:00 2001 From: David Harper Date: Sat, 6 Jun 2020 10:30:11 +0100 Subject: [PATCH] Rename move state from cancel to cancelled issue8927 review297851002 --- production.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/production.py b/production.py index 489fff42f1..4a36fae7b3 100644 --- a/production.py +++ b/production.py @@ -613,14 +613,14 @@ class Production(Workflow, ModelSQL, ModelView): dates = production._get_move_planned_date() input_date, output_date = dates inputs = [m for m in production.inputs - if m.state not in ('assigned', 'done', 'cancel')] + if m.state not in ('assigned', 'done', 'cancelled')] if inputs: to_write.append(inputs) to_write.append({ 'planned_date': input_date, }) outputs = [m for m in production.outputs - if m.state not in ('assigned', 'done', 'cancel')] + if m.state not in ('assigned', 'done', 'cancelled')] if outputs: to_write.append(outputs) to_write.append({ @@ -648,7 +648,7 @@ class Production(Workflow, ModelSQL, ModelView): to_draft, to_delete = [], [] for production in productions: for move in chain(production.inputs, production.outputs): - if move.state != 'cancel': + if move.state != 'cancelled': to_draft.append(move) else: to_delete.append(move)