Add hover text for vendor ID column of pricing batch row grid
This commit is contained in:
parent
c2ea1be83f
commit
54f1a52ed0
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue