mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP]pms: allow invoice minor than 1 unit night
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user