From fa1f56ebf9a00221477ec782e68db5009ba60f82 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Wed, 17 Apr 2024 15:58:43 +0700 Subject: modify function check_qty_apo --- indoteknik_custom/models/automatic_purchase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indoteknik_custom/models/automatic_purchase.py b/indoteknik_custom/models/automatic_purchase.py index a5c1041a..4ea43a23 100644 --- a/indoteknik_custom/models/automatic_purchase.py +++ b/indoteknik_custom/models/automatic_purchase.py @@ -178,7 +178,7 @@ class AutomaticPurchase(models.Model): id_po = [] if qty_pj > qty_outgoing_pj: id_po.append(po.name) - raise UserError('Qty yang anda beli lebih dari qty outgoing. %s' %po) + raise UserError('Qty yang anda beli lebih dari qty outgoing. %s' %id_po) def create_po_by_vendor(self, vendor_id): current_time = datetime.now() -- cgit v1.2.3