From 5dfee5262e6f2f6106d2076064d38943e4db7d80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 13 Sep 2021 23:29:57 +0200 Subject: [PATCH] Support empty list price on product issue10244 review350341002 --- subscription.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subscription.py b/subscription.py index f5923b9efe..1637dddc59 100644 --- a/subscription.py +++ b/subscription.py @@ -686,7 +686,7 @@ class Line(sequence_ordered(), ModelSQL, ModelView): with Transaction().set_context(self._get_context_sale_price()): self.unit_price = Product.get_sale_price( [product], self.quantity or 0)[product.id] - if self.unit_price: + if self.unit_price is not None: self.unit_price = round_price(self.unit_price) self.consumption_recurrence = self.service.consumption_recurrence