forked from erp-dev/erp
fix: order_description change to copy by rolling_warn of printing_order
This commit is contained in:
@@ -101,7 +101,8 @@ def _resolve_shipment_order_description(shipment: Shipment) -> str | None:
|
||||
)
|
||||
if printing_job is None or printing_job.printing_order is None:
|
||||
return None
|
||||
return printing_job.printing_order.description
|
||||
# 目前滚筒预警字段被放在了 printing_order 上,暂时沿用这个字段来返回订单描述;
|
||||
return printing_job.printing_order.rolling_warn
|
||||
|
||||
|
||||
class ShipmentSerializer(serializers.ModelSerializer):
|
||||
|
||||
Reference in New Issue
Block a user