Fix "last sold" field rendering for product view
This commit is contained in:
parent
f3ac3ca25e
commit
dade379dcf
|
@ -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 ""
|
||||
|
|
Loading…
Reference in a new issue