diff --git a/tailbone/views/purchasing/receiving.py b/tailbone/views/purchasing/receiving.py index f1b5d4eb..f905c1f7 100644 --- a/tailbone/views/purchasing/receiving.py +++ b/tailbone/views/purchasing/receiving.py @@ -230,6 +230,14 @@ class ReceivingBatchView(PurchasingBatchView): return True return False + def get_instance_title(self, batch): + title = super(ReceivingBatchView, self).get_instance_title(batch) + if batch.truck_dump: + title = "{} (TRUCK DUMP PARENT)".format(title) + elif batch.truck_dump_batch: + title = "{} (TRUCK DUMP CHILD)".format(title) + return title + def configure_form(self, f): super(ReceivingBatchView, self).configure_form(f) batch = f.model_instance