summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2026-01-05 15:12:47 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2026-01-05 15:12:47 +0700
commitfa396d3d0b3ee22b38906cb5f53a816f930efcf3 (patch)
tree7316b79d608b89a5729b739b31e8dee4325f884f
parent82fbb8fa6c6ab05e85dd59316dc46231a00d1b5b (diff)
push
-rw-r--r--fixco_custom/models/account_move_line.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fixco_custom/models/account_move_line.py b/fixco_custom/models/account_move_line.py
index d28a9de..f03d6e6 100644
--- a/fixco_custom/models/account_move_line.py
+++ b/fixco_custom/models/account_move_line.py
@@ -16,5 +16,5 @@ class AccountMoveLine(models.Model):
def _onchange_quantity(self):
for line in self:
if line.move_id.move_type == 'in_invoice' and line.id.origin:
- if line and line.quantity > line.qty_outstanding:
+ if line and line.quantity > line.qty_outstanding and line.qty_outstanding > 0:
raise UserError(_("Quantity Tidak Boleh Melebihi Qty Outstanding"))