From d1de2389a589d7338e366ac171264745474a5b18 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 15 Jan 2025 14:57:45 -0600 Subject: [PATCH] fix: add grid links for Members --- src/wutta_corepos/web/views/corepos/members.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/wutta_corepos/web/views/corepos/members.py b/src/wutta_corepos/web/views/corepos/members.py index 66c967e..19a6268 100644 --- a/src/wutta_corepos/web/views/corepos/members.py +++ b/src/wutta_corepos/web/views/corepos/members.py @@ -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]