From 10e171ea5389873fea3fb13c90242b322a37a990 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Fri, 18 Jul 2025 09:25:57 +0700 Subject: On change product otomatis terisi di requisition Create bills by search PO & SKU Create bills by upload --- fixco_custom/models/account_move_line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fixco_custom/models/account_move_line.py') 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")) -- cgit v1.2.3