[IMP]pms: allow invoice minor than 1 unit night

This commit is contained in:
Darío Lodeiros
2022-11-09 20:04:49 +01:00
parent e6b762a7a3
commit 4040b60fa7

View File

@@ -996,7 +996,7 @@ class FolioSaleLine(models.Model):
should be added to the returned invoice line should be added to the returned invoice line
""" """
self.ensure_one() 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( raise ValueError(
_( _(
"The qty (%s) is wrong." % qty "The qty (%s) is wrong." % qty