From d3908ed7f826deac29575f94346ff8c54bfeb889 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= Date: Wed, 21 May 2025 15:56:34 +0800 Subject: [PATCH] 1 --- yuthon_purchase/models/inherit_purchase_order.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yuthon_purchase/models/inherit_purchase_order.py b/yuthon_purchase/models/inherit_purchase_order.py index c84e2672d..f65e08f3e 100644 --- a/yuthon_purchase/models/inherit_purchase_order.py +++ b/yuthon_purchase/models/inherit_purchase_order.py @@ -2,9 +2,9 @@ from odoo import api, fields, models -class YuthonPurchaseOrder(models.Model): +class PurchaseOrder(models.Model): _name = 'purchase.order' - _inherit = 'purchase.order' + _inherit = ['purchase.order', 'soong.workflow.mixin'] company_id = fields.Many2one('res.company', string="公司", default=lambda self: self.env.company) user_id = fields.Many2one('res.users', string="申请人", default=lambda self: self.env.user) @@ -26,6 +26,6 @@ class PurchaseOrderPayLine(models.Model): purchase_id = fields.Many2one('purchase.order', string="关联采购单") payment_stage = fields.Char(string="付款阶段") - amount = fields.Char(string="比例/金额") + amount = fields.Char(string="比例/金额") payment_date = fields.Date(string="付款日期") remake = fields.Char(string="条件") \ No newline at end of file