From 2d9cdc51cc518cbfbfefdf2313fcb3a46da925e0 Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Mon, 18 Aug 2025 18:47:12 +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/purchase_workflow.py | 3 ++- yuthon_work_brand/views/purchase_menus.xml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/yuthon_purchase/models/purchase_workflow.py b/yuthon_purchase/models/purchase_workflow.py index 26372e22e..6e42ac56e 100644 --- a/yuthon_purchase/models/purchase_workflow.py +++ b/yuthon_purchase/models/purchase_workflow.py @@ -4,7 +4,8 @@ from odoo import api, fields, models class PurchaseWorkflow(models.Model): _name = 'purchase.workflow' - _description = '采购工作流' + _description = '采购审批单' + _inherit = ['soong.workflow.mixin', 'mail.thread.main.attachment', 'mail.activity.mixin'] code = fields.Char(string="编号", default=lambda self: self.env['ir.sequence'].next_by_code('purchase_order_sequence_code')) name = fields.Char(string="标题") diff --git a/yuthon_work_brand/views/purchase_menus.xml b/yuthon_work_brand/views/purchase_menus.xml index 93bc35a9d..788c7b29d 100644 --- a/yuthon_work_brand/views/purchase_menus.xml +++ b/yuthon_work_brand/views/purchase_menus.xml @@ -19,7 +19,7 @@ action="purchase.purchase_form_action" sequence="5"/>