From ecdb8dd8fffed02050f401b3acf750dc6d72903a 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:22:44 +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_issue/models/issue_library.py | 3 +- yuthon_issue/views/issue_library_views.xml | 3 +- .../models/inherit_purchase_order.py | 2 + yuthon_purchase/models/purchase_workflow.py | 5 +- .../views/inherit_purchase_order_views.xml | 100 ++++++++++++++---- 5 files changed, 87 insertions(+), 26 deletions(-) diff --git a/yuthon_issue/models/issue_library.py b/yuthon_issue/models/issue_library.py index 1795dc1de..532f533c9 100644 --- a/yuthon_issue/models/issue_library.py +++ b/yuthon_issue/models/issue_library.py @@ -12,8 +12,9 @@ class IssueLibrary(models.Model): name = fields.Char(string='议题名称') name_text = fields.Text(string='议题名称', compute='_compute_name', readonly=False) depart_opinions = fields.Text(string='部门意见') - topic_content = fields.Text(string='议题详细描述') + topic_content = fields.Text(string='事项背景') will_based = fields.Text(string='上会依据') + deliberation_content = fields.Text(string='审议内容', default='建议同意') is_invisible_workflow = fields.Boolean(string="流程隐藏的判断") code = fields.Char(string='编号', required=True, copy=False, default=lambda self: self.env['ir.sequence'].next_by_code('issue_library_code')) diff --git a/yuthon_issue/views/issue_library_views.xml b/yuthon_issue/views/issue_library_views.xml index ea21a812f..fdedcea48 100644 --- a/yuthon_issue/views/issue_library_views.xml +++ b/yuthon_issue/views/issue_library_views.xml @@ -65,9 +65,10 @@ + + - diff --git a/yuthon_purchase/models/inherit_purchase_order.py b/yuthon_purchase/models/inherit_purchase_order.py index 018bbcae7..5efce9ac3 100644 --- a/yuthon_purchase/models/inherit_purchase_order.py +++ b/yuthon_purchase/models/inherit_purchase_order.py @@ -32,6 +32,8 @@ class InheritPurchaseOrder(models.Model): 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="付款详情") + low_line_ids = fields.One2many('purchase.low.line', 'order_id', string="低值易耗明细") + service_line_ids = fields.One2many('purchase.service.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 a7fa99873..4cfc521c0 100644 --- a/yuthon_purchase/models/purchase_workflow.py +++ b/yuthon_purchase/models/purchase_workflow.py @@ -114,7 +114,7 @@ class PurchaseOrderPayLine(models.Model): _description = "付款详情" purchase_id = fields.Many2one('purchase.workflow', string="关联采购工作流") - order_id = fields.Many2one('purchase.order', string="关联采购工作流") + order_id = fields.Many2one('purchase.order', string="关联采购") payment_stage = fields.Char(string="付款阶段") amount = fields.Char(string="比例/金额") payment_date = fields.Date(string="付款日期") @@ -154,7 +154,9 @@ class PurchaseLowLine(models.Model): _name = 'purchase.low.line' _description = '低值易耗采购明细' 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="规格") name = fields.Text(string="描述") @@ -186,6 +188,7 @@ class PurchaseServiceLine(models.Model): service_id = fields.Many2one('purchase.workflow', string="关联采购工作流") product_id = fields.Many2one('product.product', string="服务项目") + order_id = fields.Many2one('purchase.order', string="关联采购") frequency = fields.Integer(string='频次') fee = fields.Float(string="费用") name = fields.Text(string="描述") diff --git a/yuthon_purchase/views/inherit_purchase_order_views.xml b/yuthon_purchase/views/inherit_purchase_order_views.xml index e4f657c7b..ce9e33b16 100644 --- a/yuthon_purchase/views/inherit_purchase_order_views.xml +++ b/yuthon_purchase/views/inherit_purchase_order_views.xml @@ -80,30 +80,84 @@ [('is_employee', '=', False)] + + purchase_type != 'fixed' + 固定资产明细 + - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + +