diff --git a/tailbone/views/batch/pricing.py b/tailbone/views/batch/pricing.py index 57a97a62..1f054e61 100644 --- a/tailbone/views/batch/pricing.py +++ b/tailbone/views/batch/pricing.py @@ -210,10 +210,11 @@ class PricingBatchView(BatchMasterView): g.set_renderer('true_margin', self.render_true_margin) def render_vendor_id(self, row, field): - vendor_id = row.vendor.id if row.vendor else None - if not vendor_id: - return "" - return vendor_id + vendor = row.vendor + if not vendor: + return + text = vendor.id or "(no id)" + return HTML.tag('span', c=text, title=vendor.name) def render_subdepartment_number(self, row, field): if row.subdepartment_number: