diff --git a/yuthon_purchase/models/inherit_purchase_order.py b/yuthon_purchase/models/inherit_purchase_order.py index ec4cab94c..7a48da19a 100644 --- a/yuthon_purchase/models/inherit_purchase_order.py +++ b/yuthon_purchase/models/inherit_purchase_order.py @@ -53,6 +53,15 @@ class InheritPurchaseOrder(models.Model): store=True ) + # 入库进度(根据关联入库单的 receipt_status 聚合) + picking_receipt_state = fields.Selection([ + ('waiting', '待验收'), + ('certification', '证明入库'), + ('done', '已入库'), + ], string="入库状态", compute='_compute_picking_receipt_state', store=False) + + + @api.depends('log_ids', 'work_end') def _compute_purchase_state(self): """