From ff57359f2b4cb01436bd1d5e90143ff4f2ddcfce 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 --- account.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/account.py b/account.py index fb6eb9f798..74fd22721f 100644 --- a/account.py +++ b/account.py @@ -210,7 +210,7 @@ class LandedCost(Workflow, ModelSQL, ModelView): currency = self.company.currency moves = [m for s in self.shipments for m in s.incoming_moves - if m.state != 'cancel'] + if m.state != 'cancelled'] sum_value = 0 unit_prices = {} @@ -239,7 +239,7 @@ class LandedCost(Workflow, ModelSQL, ModelView): cost = self.cost currency = self.company.currency moves = [m for s in self.shipments for m in s.incoming_moves - if m.state != 'cancel' and m.quantity] + if m.state != 'cancelled' and m.quantity] costs = [] digit = Move.unit_price.digits[1]