From fa396d3d0b3ee22b38906cb5f53a816f930efcf3 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Mon, 5 Jan 2026 15:12:47 +0700 Subject: push --- fixco_custom/models/account_move_line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")) -- cgit v1.2.3