fix: add link to "resolved by" user for pending products

This commit is contained in:
Lance Edgar 2024-06-27 23:11:13 -05:00
parent 525a28f3fe
commit 067ca5bd43

View file

@ -2457,9 +2457,10 @@ class PendingProductView(MasterView):
# resolved* # resolved*
if self.creating: if self.creating:
f.remove('resolved', 'resolved_by') f.remove('resolved', 'resolved_by')
elif pending.resolved:
f.set_renderer('resolved_by', self.render_user)
else: else:
if not pending.resolved: f.remove('resolved', 'resolved_by')
f.remove('resolved', 'resolved_by')
def render_status_code(self, pending, field): def render_status_code(self, pending, field):
status = pending.status_code status = pending.status_code