From 2d9cdc51cc518cbfbfefdf2313fcb3a46da925e0 Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Mon, 18 Aug 2025 18:47:12 +0800 Subject: [PATCH 1/2] =?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"/> From b19003bcd09b5c94a917c1560e318d2fde3fa0fd Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Mon, 18 Aug 2025 18:49:04 +0800 Subject: [PATCH 2/2] =?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/security/ir.model.access.csv | 3 +++ 1 file changed, 3 insertions(+) diff --git a/yuthon_purchase/security/ir.model.access.csv b/yuthon_purchase/security/ir.model.access.csv index b5211b5e2..38137d780 100644 --- a/yuthon_purchase/security/ir.model.access.csv +++ b/yuthon_purchase/security/ir.model.access.csv @@ -1,6 +1,9 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_purchase_fixed_assets,purchase_fixed_assets,model_purchase_fixed_assets,,1,1,1,1 access_purchase_fixed_line, purchase_fixed_line,model_purchase_fixed_line,,1,1,1,1 access_purchase_order_pay_line,purchase_order_pay_line,model_purchase_order_pay_line,,1,1,1,1 +access_purchase_low_orders, purchase_low_orders,model_purchase_low_orders,,1,1,1,1 +access_purchase_service_orders, purchase_service_orders,model_purchase_service_orders,,1,1,1,1 access_purchase_low_line, purchase_low_line,model_purchase_low_line,,1,1,1,1 access_purchase_service_line, purchase_service_line,model_purchase_service_line,,1,1,1,1 access_purchase_workflow, purchase_workflow,model_purchase_workflow,,1,1,1,1 \ No newline at end of file