fix: add grid links for Members

This commit is contained in:
Lance Edgar 2025-01-15 14:57:45 -06:00
parent 34e9528f4b
commit d1de2389a5

View file

@ -100,6 +100,12 @@ class MemberView(CoreOpMasterView):
g.set_renderer('last_name', self.render_customer_attr)
g.set_sorter('last_name', op_model.CustomerClassic.last_name)
# links
if self.has_perm('view'):
g.set_link('card_number')
g.set_link('first_name')
g.set_link('last_name')
def render_customer_attr(self, member, key, value):
""" """
customer = member.customers[0]