From e6d8ebb7b33e8bdfebb456354724ba034ccc6e61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E5=B0=A7?= Date: Thu, 15 May 2025 14:39:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_base/commons/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sf_base/commons/common.py b/sf_base/commons/common.py index 579125f0..b90bf037 100644 --- a/sf_base/commons/common.py +++ b/sf_base/commons/common.py @@ -197,7 +197,7 @@ class PrintingUtils(models.AbstractModel): if buttom_text: # 在下方中间添加文字 - text = button_text + text = buttom_text text_width = c.stringWidth(text, "SimSun" if font_found else "Helvetica", 10) # 准确计算文字宽度 text_x = (page_width - text_width) / 2 # 文字居中对齐 text_y = margin + 20 # 文字位置靠近底部