mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
only render it as a date
This commit is contained in:
parent
771f6de93a
commit
927f7bbdad
@ -443,7 +443,7 @@ class PartDetail(InvenTreeRoleMixin, DetailView):
|
||||
if stock_item.purchase_order and stock_item.purchase_order.issue_date:
|
||||
line['date'] = stock_item.purchase_order.issue_date.isoformat()
|
||||
elif stock_item.tracking_info.count() > 0:
|
||||
line['date'] = stock_item.tracking_info.first().date.isoformat()
|
||||
line['date'] = stock_item.tracking_info.first().date.date().isoformat()
|
||||
else:
|
||||
# Not enough information
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user