mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 04:26:44 +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:
|
if stock_item.purchase_order and stock_item.purchase_order.issue_date:
|
||||||
line['date'] = stock_item.purchase_order.issue_date.isoformat()
|
line['date'] = stock_item.purchase_order.issue_date.isoformat()
|
||||||
elif stock_item.tracking_info.count() > 0:
|
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:
|
else:
|
||||||
# Not enough information
|
# Not enough information
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user