From da3b481d0563c571d157781618db2562dd11428f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?=
<9664676+pengyuthon@user.noreply.gitee.com>
Date: Fri, 26 Dec 2025 17:33:14 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../models/inherit_purchase_order.py | 1 +
yuthon_purchase/models/purchase_workflow.py | 1 +
.../views/inherit_purchase_order_views.xml | 17 +++++++++++++++++
3 files changed, 19 insertions(+)
diff --git a/yuthon_purchase/models/inherit_purchase_order.py b/yuthon_purchase/models/inherit_purchase_order.py
index 5efce9ac3..89208e48d 100644
--- a/yuthon_purchase/models/inherit_purchase_order.py
+++ b/yuthon_purchase/models/inherit_purchase_order.py
@@ -34,6 +34,7 @@ class InheritPurchaseOrder(models.Model):
pay_line_ids = fields.One2many('purchase.order.pay.line', 'order_id', string="付款详情")
low_line_ids = fields.One2many('purchase.low.line', 'order_id', string="低值易耗明细")
service_line_ids = fields.One2many('purchase.service.line', 'order_id', string="服务明细")
+ fixed_line_ids = fields.One2many('purchase.fixed.line', 'order_id', string="日常消耗品明细")
def end_approval(self):
self.button_confirm()
diff --git a/yuthon_purchase/models/purchase_workflow.py b/yuthon_purchase/models/purchase_workflow.py
index 4cfc521c0..ca5f74c57 100644
--- a/yuthon_purchase/models/purchase_workflow.py
+++ b/yuthon_purchase/models/purchase_workflow.py
@@ -127,6 +127,7 @@ class PurchaseFixedLine(models.Model):
purchase_id = fields.Many2one('purchase.workflow', string="关联采购工作流")
product_id = fields.Many2one('product.product', string="物品名称")
+ order_id = fields.Many2one('purchase.order', string="关联采购")
brand = fields.Char(string="品牌")
specs = fields.Char(string="规格")
number = fields.Integer(string="数量")
diff --git a/yuthon_purchase/views/inherit_purchase_order_views.xml b/yuthon_purchase/views/inherit_purchase_order_views.xml
index 57ed75fc1..3f92109cb 100644
--- a/yuthon_purchase/views/inherit_purchase_order_views.xml
+++ b/yuthon_purchase/views/inherit_purchase_order_views.xml
@@ -85,6 +85,23 @@
固定资产明细
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+