From 56139e8a38b4f196653e38b060eda994d72b754c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dar=C3=ADo=20Lodeiros?= Date: Tue, 14 Jan 2025 17:45:01 +0100 Subject: [PATCH] [IMP]pms: reservation service lines with negative amounts --- pms/models/pms_service_line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pms/models/pms_service_line.py b/pms/models/pms_service_line.py index 797df498a..c5e1438f3 100644 --- a/pms/models/pms_service_line.py +++ b/pms/models/pms_service_line.py @@ -154,7 +154,7 @@ class PmsServiceLine(models.Model): def _compute_day_amount_service(self): for line in self: amount_service = line.price_unit - if amount_service > 0: + if amount_service: currency = line.service_id.currency_id product = line.product_id price = amount_service * (1 - (line.discount or 0.0) * 0.01)