From 0c3907697af086c5d59459c1d67f52a6d0e3e036 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= Date: Mon, 30 Mar 2026 16:18:52 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=87=E8=B4=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_purchase/models/inherit_purchase_order.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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): """