From 2b56b51cf603ce1e89ca4a9f666e1dee1ca95913 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= Date: Thu, 26 Feb 2026 16:54:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=BA=90=E5=8D=95=E6=8D=AE=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_stock/__manifest__.py | 2 +- yuthon_stock/views/inherit_stock_picking.xml | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/yuthon_stock/__manifest__.py b/yuthon_stock/__manifest__.py index eae17400e..11b566af9 100644 --- a/yuthon_stock/__manifest__.py +++ b/yuthon_stock/__manifest__.py @@ -6,7 +6,7 @@ 'category': 'zhou', 'version': '0.1', 'license': 'LGPL-3', - 'depends': ['base', 'stock', 'documents', 'maintenance', 'funenc_json_widget'], + 'depends': ['base', 'stock', 'purchase_stock', 'documents', 'maintenance', 'funenc_json_widget'], 'data': [ 'security/ir.model.access.csv', 'views/menu.xml', diff --git a/yuthon_stock/views/inherit_stock_picking.xml b/yuthon_stock/views/inherit_stock_picking.xml index cf51a4a2e..50031241f 100644 --- a/yuthon_stock/views/inherit_stock_picking.xml +++ b/yuthon_stock/views/inherit_stock_picking.xml @@ -8,8 +8,12 @@ + + 1 + + @@ -42,6 +46,9 @@ 证明 receipt_status != 'certification' + + picking_type_code == 'outgoing' or receipt_status == 'acceptance' + 1