diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-07-18 09:25:57 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-07-18 09:25:57 +0700 |
| commit | 10e171ea5389873fea3fb13c90242b322a37a990 (patch) | |
| tree | 9288e4c9693cb5ea1a3d18e66e0bb723f9be5133 /fixco_custom/models/account_move_line.py | |
| parent | 66b6b5863a15377c91300079026b11e7f81d60e4 (diff) | |
On change product otomatis terisi di requisition
Create bills by search PO & SKU
Create bills by upload
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 cf4d5d7..0db9c33 100644 --- a/fixco_custom/models/account_move_line.py +++ b/fixco_custom/models/account_move_line.py @@ -15,5 +15,5 @@ class AccountMoveLine(models.Model): @api.onchange('quantity') def _onchange_quantity(self): for line in self: - if line.quantity > line.qty_outstanding: + if line and line.quantity > line.qty_outstanding: raise UserError(_("Quantity Tidak Boleh Melebihi Qty Outstanding")) |
