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]