From cce40753a975d058241d76d4e3d49e52653ed28f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= Date: Fri, 27 Feb 2026 11:58:23 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=87=E8=B4=AD=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_purchase/models/inherit_purchase_order.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/yuthon_purchase/models/inherit_purchase_order.py b/yuthon_purchase/models/inherit_purchase_order.py index 0fbedcdd3..5cffa2d05 100644 --- a/yuthon_purchase/models/inherit_purchase_order.py +++ b/yuthon_purchase/models/inherit_purchase_order.py @@ -158,8 +158,9 @@ class InheritPurchaseOrder(models.Model): return self.search_count(domain) def action_view_picking(self): - if self.user_id == self.env.user: - raise UserError("您不能接收自己创建的采购订单产品") + # 注释掉创建人限制,允许所有人查看收货单 + # if self.user_id == self.env.user: + # raise UserError("您不能接收自己创建的采购订单产品") return super(InheritPurchaseOrder, self).action_view_picking()