diff options
| author | Mqdd <ahmadmiqdad27@gmail.com> | 2026-01-02 11:11:32 +0700 |
|---|---|---|
| committer | Mqdd <ahmadmiqdad27@gmail.com> | 2026-01-02 11:11:32 +0700 |
| commit | bea1370dc724d8675667122384e0d26ecef1ecf9 (patch) | |
| tree | 3a1bf870782994417451fa3130f3a0dde13eeed8 | |
| parent | 20a17a725aa9f3ff3d94c9405042f924101a3d13 (diff) | |
<Miqdad> change error message
| -rw-r--r-- | fixco_custom/models/shipment_group.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fixco_custom/models/shipment_group.py b/fixco_custom/models/shipment_group.py index 01e0f6b..68e5235 100644 --- a/fixco_custom/models/shipment_group.py +++ b/fixco_custom/models/shipment_group.py @@ -101,7 +101,7 @@ class ShipmentGroup(models.Model): for picking_line in record.picking_lines: if not picking_line.picking_id: continue - + for move in picking_line.picking_id.move_line_ids_without_package: existing_line = record.shipment_line.filtered( lambda l: l.product_id == move.product_id and @@ -244,7 +244,7 @@ class PickingLine(models.Model): ], limit=1) if not picking: - raise UserError("Receipt '%s' not found." % line.scan_receipt) + raise UserError("Receipt '%s' not found or hasn't been done." % line.scan_receipt) # Isi field otomatis line.picking_id = picking |
