From b8cc57a081e8eade2376f09ec0eb87b1576a094c 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: Sat, 27 Dec 2025 17:18:34 +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 --- yuthon_purchase/models/inherit_purchase_order.py | 4 ++-- yuthon_purchase/views/inherit_purchase_order_views.xml | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/yuthon_purchase/models/inherit_purchase_order.py b/yuthon_purchase/models/inherit_purchase_order.py index 0207023f9..8abeb2245 100644 --- a/yuthon_purchase/models/inherit_purchase_order.py +++ b/yuthon_purchase/models/inherit_purchase_order.py @@ -28,7 +28,7 @@ class InheritPurchaseOrder(models.Model): start_date = fields.Date(string="申请日期", default=fields.Date.today()) purchase_type = fields.Selection( [('fixed', '固定资产'), ('low', '低值易耗'), ('service', '服务'), ('book', '书籍报刊'), ('foot', '饭堂食材')], - string="采购类型", default='fixed') + string="采购标的类型", default='fixed') pay_way = fields.Selection([('onetime', '一次性'), ('installment', '分期')], string="付款方式", default='onetime') reason_text = fields.Text(string="申请事由") pay_line_ids = fields.One2many('purchase.order.pay.line', 'order_id', string="付款详情") @@ -100,7 +100,7 @@ class InheritPurchaseOrderLine(models.Model): purchase_type = fields.Selection( [('fixed', '固定资产'), ('low', '低值易耗'), ('service', '服务'), ('book', '书籍报刊'), ('foot', '饭堂食材')], - string="采购类型", default='fixed') + string="采购标的类型", default='fixed') category_ids = fields.Many2many('product.category', string="产品分类", compute='_compute_purchase_type') @api.depends('purchase_type') diff --git a/yuthon_purchase/views/inherit_purchase_order_views.xml b/yuthon_purchase/views/inherit_purchase_order_views.xml index 1591e6c64..5291c77f3 100644 --- a/yuthon_purchase/views/inherit_purchase_order_views.xml +++ b/yuthon_purchase/views/inherit_purchase_order_views.xml @@ -65,6 +65,9 @@ + + 明细 + p 1