From 4040b60fa70de7ead8f22ff21c727304201f26de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dar=C3=ADo=20Lodeiros?= Date: Wed, 9 Nov 2022 20:04:49 +0100 Subject: [PATCH] [IMP]pms: allow invoice minor than 1 unit night --- pms/models/folio_sale_line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pms/models/folio_sale_line.py b/pms/models/folio_sale_line.py index 921b9920d..ff8992bb6 100644 --- a/pms/models/folio_sale_line.py +++ b/pms/models/folio_sale_line.py @@ -996,7 +996,7 @@ class FolioSaleLine(models.Model): should be added to the returned invoice line """ self.ensure_one() - if (qty > self.qty_to_invoice or qty < 1) and not self.display_type: + if (qty > self.qty_to_invoice) and not self.display_type: raise ValueError( _( "The qty (%s) is wrong." % qty