diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2026-01-05 15:12:47 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2026-01-05 15:12:47 +0700 |
| commit | fa396d3d0b3ee22b38906cb5f53a816f930efcf3 (patch) | |
| tree | 7316b79d608b89a5729b739b31e8dee4325f884f | |
| parent | 82fbb8fa6c6ab05e85dd59316dc46231a00d1b5b (diff) | |
push
| -rw-r--r-- | fixco_custom/models/account_move_line.py | 2 |
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")) |
