From dade379dcf5fe5f113ae01b88545d946d8d22dae Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 5 Aug 2019 16:06:23 -0500 Subject: [PATCH] Fix "last sold" field rendering for product view --- tailbone/views/products.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tailbone/views/products.py b/tailbone/views/products.py index a670bbbd..57d7dd33 100644 --- a/tailbone/views/products.py +++ b/tailbone/views/products.py @@ -421,7 +421,6 @@ class ProductsView(MasterView): f.remove_field('last_sold') else: f.set_readonly('last_sold') - f.set_renderer('last_sold', self.render_last_sold) # inventory_on_hand if self.creating: @@ -860,9 +859,6 @@ class ProductsView(MasterView): return "" return raw_datetime(self.request.rattail_config, value) - def render_last_sold(self, product, field): - return "TODO: add default renderer for last sold" - def render_inventory_on_hand(self, product, field): if not product.inventory: return ""