From da99549308bf16df805da1026820871c16a8d77b Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Fri, 15 Aug 2025 15:26:15 +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_fixed_assets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_purchase/models/purchase_fixed_assets.py b/yuthon_purchase/models/purchase_fixed_assets.py index d9fa2b1b7..ea6ca1522 100644 --- a/yuthon_purchase/models/purchase_fixed_assets.py +++ b/yuthon_purchase/models/purchase_fixed_assets.py @@ -7,7 +7,7 @@ class PurchaseFixedAssets(models.Model): _description = '固定资产采购单' _inherit = ['soong.workflow.mixin'] - purchase_code = fields.Char(string="流水号", + code = fields.Char(string="流水号", default=lambda self: self.env['ir.sequence'].next_by_code('purchase_order_sequence_code')) name = fields.Char(string="名称") company_id = fields.Many2one('res.company', string="公司", default=lambda self: self.env.company)