diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-12-22 13:36:43 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-12-22 13:36:43 +0700 |
| commit | 74bc0544d9789479f599e808930e01ecea7fbf22 (patch) | |
| tree | ef11ccc1620ab31ee1b560c8b16f0552041a7742 /fixco_custom/models/account_move_line.py | |
| parent | b03b5e7d3ab83db6f26610490fc2a4e7dc4d3d9c (diff) | |
push
Diffstat (limited to 'fixco_custom/models/account_move_line.py')
| -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 68df00b..d28a9de 100644 --- a/fixco_custom/models/account_move_line.py +++ b/fixco_custom/models/account_move_line.py @@ -15,6 +15,6 @@ class AccountMoveLine(models.Model): @api.onchange('quantity') def _onchange_quantity(self): for line in self: - if line.move_id.move_type == 'in_invoice': + if line.move_id.move_type == 'in_invoice' and line.id.origin: if line and line.quantity > line.qty_outstanding: raise UserError(_("Quantity Tidak Boleh Melebihi Qty Outstanding")) |
